Developers like to save their work on GitHub. As the years go by, you may want to delete some of them. Then, we will learn how to delete GitHub repository.
Before moving to a guide on how to delete GitHub repository, here's a summary of the steps we're going to follow:
If you're new to Git, you can learn how to create a repository in GitHub, then come back to this article to delete it.
Now that you're aware of the 8 steps to remove your repository. Let's do it together!
Open the GitHub login page, and connect to your account. Once you log in to your account, you will be redirected to another page.
At the top right of your screen, click on your profile picture to see the navigation menu. Click on "Your repositories" to open the repository list.
On this page, you will see all your existing repositories (public and private). Click on the one you want to remove.
For example, I will delete the GitHub repository we created in my guide about how to start with Git ("Hello-Github-Repository").
Now you're on the repository page, click on the "Settings" in the menu.
In the first settings page, scroll down to the bottom until you see a red box entitled "Danger zone".
At the right of the following text: "Once you delete a repository, there is no going back. Please be certain.", you can click on the "Delete this repository" button. A pop-up should appear.
You're at the last step! All you need to do is to confirm that you agree to remove the repository permanently. If you want to confirm, type your repository name like on the picture below.
Note: You need to type your GitHub username followed by the complete repository name. If you don't know what to type, you can find it in the last sentence: "Please type your-username/your-repository-name to confirm."
If the deletion is a success, you will be redirected to the homepage. A success message is under the navigation bar. You're back to the homepage, and you successfully deleted your Github repository! ✨🚮
Here you are! You learned how to delete repository from GitHub.
➡️ If you want more content like this, you can follow me on Twitter, where I tweet about web development, self-improvement, and my journey as a fullstack developer!