deletes repository if failed uploading