Creating repositories in GitHub is pretty Straight forward unlike deleting which is not as straightforward especially for first timers. You might spend a lot of time trying to find the delete option in vain.
Whether you are just cleaning up your account or you no longer need a repository, you will find yourself in situations where you need to delete repositories.
Whichever the case, this guide will walk you through the steps to delete a GitHub repository.
Let's get to it.
- Have your own GitHub account.
- Unwanted repository.
Step 1: Log in to your Github account.
Step 2: Access Your Repo
Once you are logged in to your GitHub account, find the repository you want to delete. You can do this by heading to your repositories which can be accessed by clicking on your profile icon in the top right corner of the page and selecting
This will open up the repositories tab with all the repositories you've created so far.
Step 3: Go to Repository Settings
Locate the repository you want to delete and click on it to get into the repository.
Inside the repository, locate and click on the
settings tab. You can find this tab on the navigation bar.
Step 4: Scroll Down to the Danger Zone
settings tab, scroll to the bottom until you see the
Danger Zone section. This section contains actions related to deleting and other irreversible options.
As the section name suggests, this is a danger zone so be cautious before proceeding with any action.
Step 5: Deleting a Repository
Within the "Danger Zone," look for the option labeled
Delete this repository and click on it. This will be followed by a series of pop-ups requiring you to confirm the deletion. Read them carefully and proceed when sure.
GitHub will require you to confirm your decision by entering the repository name. This is a safety measure to prevent accidental deletions.
Step 6: Verify Deletion
After clicking Delete this repository, GitHub will prompt you to enter your GitHub password to confirm the action. After entering your password, the repository will get deleted from your account.
You can confirm the deletion by heading to your repositories one more time and scrolling through, if you can't find the repository you just deleted, good job, you have successfully deleted a repository.
By following this tutorial, you will successfully delete a GitHub repository. Keep in mind that this action is irreversible, and all data associated with the repository will be permanently removed. If you have any concerns about losing data, consider creating a backup or exporting important information before proceeding with the deletion.
Always exercise caution when deleting repositories, and make sure you have the necessary permissions to perform such actions. Additionally, communicate with collaborators and stakeholders to inform them of the repository deletion if it impacts ongoing projects.
If you found the article helpful, consider subscribing and sharing the article with interesting parties.
Thanks for reading : )