cleaning the Repository