I have a Git repository hosted publicly on GitHub that I would like to delete. How can I do this?
4 Answers
See Deleting a repository, from Help.GitHub.
Go to the repo's Settings page
Scroll to the bottom of the page and click "Delete this repository"
Read the warnings and enter the name of the repository you want to delete
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.
-
1The 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– user8224Jan 27, 2011 at 23:57
-
1@godlinbox Deleting a private repo will delete all forks of the repo. Deleting a public repo will not.– LipisJan 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
Yes absolutely, please follow the steps
- Login to your account
- Click on Repositories
- Select your Repository (that you wants to delete)
- Click on settings tab
- Goto "Danger Zone" block
- Click on "Delete this repository" button
- Type the repository name (that you wants to delete)
- Now click "I understand the consequences, delete this repository" button
- Now your repository deleted successfully.
- Install hub: https://github.com/github/hub
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.