Cleans up repository