Cleans up repository.