Cleans the repository