The previous tutorial explained the steps to create a new repository in GitHub. In this tutorial, I will explain how we can delete n existing repository in GitHub.
It is important to note that you can delete any repository or fork if you’re either an organization owner or have admin permissions for the repository or fork. Deleting a forked repository does not delete the upstream repository.
- Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone.
- Deleting a private repository will delete all forks of the repository
Step 1 – Login to GitHub using your username and password.
Step 2 – Navigate to the main page of the repository. Under your repository name, click “Settings“.
Step 3 – Scroll down and, under “Danger Zone“, click the “Delete this repository” button.
Step 4 – To verify that you’re deleting the correct repository, type the name of the repository you want to delete.
Click the “I understand the consequences, delete this repository” button.
Step 5 – You need to re-login to confirm your access.
Congratulations!!. We have just deleted a repository in GitHub.