cleanup of repository