Deleting and restoring a repository
Soft-delete a repository from settings; restore it before purge.
1. Open repository settings
Go to
/{owner}/{repo}/settingsas a maintainer. Org admins see the Delete repository section.2. Confirm deletion
In Delete repository, type the repository name exactly as prompted in the confirmation field, then click Delete repository.
3. Grace period
The repo enters Pending deletion with a restore option on the settings page for about 7 days. Commits and blobs are kept during this window.
4. Restore yourself
While pending, click Restore repository on the settings page if you still have admin access on the repo.
5. Admin restore
Global admins can restore or permanently purge soft-deleted repositories from the admin panel — see Admin panel overview.
