remove repository and save