Make rebuild_repo_metadata to use __delete method