cleanup of the repository