I have a Git repository hosted publicly on GitHub that I would like to delete. How can I do this?
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.
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.