Delete a Repository in GitHub: A Step-by-Step Guide

Berra Sarı
2 min readJul 25, 2023

Committing and pushing code in GitHub is a time-saving process for software developers. However, when creating an application or a program, there may come a time when you no longer need a particular repository that you created. Deleting the repository is an essential process and can easily be executed if you follow the steps outlined in this article.

Steps on How to Delete a Repository

  1. On your GitHub profile, click the Repositories tab.
  2. Next, select the repository that you want to delete.
  3. Once the repository window opens, click the Settings tab located in the menu bar.
  4. In the new window, scroll down until you reach the “Danger Zone”.
  5. In the Danger Zone, click the Delete this repository button.
  6. A pop-up window will appear asking you to confirm the deletion.
  7. Type in the name of the repository you want to delete and click the I understand the consequences, delete this repository button.

And you’re done! You have successfully deleted the repository from your GitHub profile.

FAQ

How do I delete a repository on GitHub?

To delete a repository on GitHub, go to the Settings tab of the respective repository, scroll down to the “Danger Zone,” and select the “Delete this repository” button. You will be asked to confirm the deletion and type in the name of the repository that you want to delete. After this, click the “I understand the consequences, delete this repository” button to delete the repository.

Can I undo a repository deletion on GitHub?

No, once a repository is deleted, it cannot be undone.The repository will be permanently deleted, and you won’t be able to recover the deleted repository or any related code.

How do I permanently delete a repository in GitHub?

To delete a repository in GitHub, go to the Settings tab and scroll down to the “Danger Zone”. Click the “Delete this repository” button and enter the name of the repository in the pop-up window. Then, click the “I understand the consequences, delete this repository” button to permanently delete the repository.

What happens when I delete a GitHub repository?

When you delete a repository in GitHub, it will be permanently deleted from your profile and all associated code will be permanently removed and cannot be recovered.

Can I rename a repository in GitHub?

Yes, you can rename a repository on GitHub. To do this, go to the Settings tab of the respective repository and scroll down to the “Rename repository” section. Enter the new name of the repository and click the “Rename repository” button to rename the repository.

Further Reading

--

--

No responses yet