This version of GitHub Enterprise was discontinued on 2021-09-23. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

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. If Allow members to delete or transfer repositories for this organization has been disabled, only organization owners can delete organization repositories. For more information, see "Repository permission levels for an organization."

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

Warnings:

  • Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone.
  • Deleting a private or internal repository will delete all forks of the repository.
  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.
  2. Under your repository name, click Settings. Repository settings button
  3. Under Danger Zone, click Delete this repository. Repository deletion button
  4. Read the warnings.
  5. To verify that you're deleting the correct repository, type the name of the repository you want to delete. Deletion labeling
  6. Click I understand the consequences, delete this repository.