Cleans up the repository