I have a Git repository hosted publicly on GitHub that I would like to delete. How can I do this?


4 Answers 4


See Deleting a repository, from Help.GitHub.

  1. Go to the repo's Settings page

  2. Scroll to the bottom of the page and click "Delete this repository"

  3. Read the warnings and enter the name of the repository you want to delete

  4. Click "I understand the consequences, delete this repository"

Deleting a public repo will leave the forks, but if it was private, then all its forks would also be deleted.

  • 1
    The links given above <strike>Deleting a repo</strike> says you can not use this to delete a public repository! ----- EDIT: The first link is appeared to be broken. Use the following link: Deleting a repository
    – user8224
    Jan 27, 2011 at 23:57
  • 1
    @godlinbox Deleting a private repo will delete all forks of the repo. Deleting a public repo will not.
    – Lipis
    Jan 28, 2011 at 0:08
  • It says forks (copies, more or less) of your repository by other users won't be deleted, your own repository will. Note the difference. Jan 28, 2011 at 0:23
  • 1
    The "admin" page is now called "Settings" page. Jun 22, 2015 at 18:03

Yes absolutely, please follow the steps

  1. Login to your account
  2. Click on Repositories
  3. Select your Repository (that you wants to delete)
  4. Click on settings tab
  5. Goto "Danger Zone" block
  6. Click on "Delete this repository" button
  7. Type the repository name (that you wants to delete)
  8. Now click "I understand the consequences, delete this repository" button
  9. Now your repository deleted successfully.
  1. Install hub: https://github.com/github/hub
  2. hub delete <repo_name>

Hub will ask for your username and password at the first use. It then creates an api token for later usage. You need to grant hub the right to delete your repos with this token in your github settings (only required to be done once).


This is much easier than what recommended before. Check this link from the Github Help page, they tell you to go the settings inside your repository and then to the danger zone, then you click delete this repository and confirm that by typing your password.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.