Skip to main content

Deleting a repository

You can delete any repository or fork if you're either an organization owner or have admin permissions for the repository or fork. Deleting a forked repository does not delete the upstream repository.

Only members with owner privileges for an organization or admin privileges for a repository can delete an organization repository. IfAllow members to delete or transfer repositories for this organizationhas been disabled, only organization owners can delete organization repositories. For more information, see "Repository roles for an organization."

Deleting a public repository will not delete any forks of the repository.

Warnings:

  • Deleting a repository willpermanentlydelete release attachments and team permissions. This actioncannotbe undone.
  • Deleting a private repository will delete all forks of the repository.

Some deleted repositories can be restored within 90 days of deletion. For more information, see "Restoring a deleted repository."

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, clickSettings.If you cannot see the "Settings" tab, select thedropdown menu, then clickSettings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.
  3. On the "General" settings page (which is selected by default), scroll down to the "Danger Zone" section and clickDelete this repository.

  4. ClickI want to delete this repository.

  5. Read the warnings and clickI have read and understand these effects.

  6. To verify that you're deleting the correct repository, in the text box, type the name of the repository you want to delete.

  7. ClickDelete this repository.