Your Guide to How To Delete a Repo From Github
What You Get:
Free Guide
Free, helpful information about Files, Data & Cloud Storage and related How To Delete a Repo From Github topics.
Helpful Information
Get clear and easy-to-understand details about How To Delete a Repo From Github topics and resources.
Personalized Offers
Answer a few optional questions to receive offers or information related to Files, Data & Cloud Storage. The survey is optional and not required to access your free guide.
How to Delete a Repo From GitHub: What You Need to Know Before You Do It
Deleting a GitHub repository is a permanent action — and GitHub makes it deliberately difficult to do by accident. Whether you're cleaning up old projects, removing a test repo, or shutting down a public codebase, the process is straightforward, but there are a few things worth understanding before you click that button.
What Happens When You Delete a GitHub Repository
When you delete a repo on GitHub, the following happens immediately:
- The remote repository (hosted on GitHub's servers) is permanently removed
- All issues, pull requests, wikis, and project boards tied to that repo are deleted
- GitHub Actions workflows and their history are erased
- Any GitHub Pages site hosted from that repo goes offline
- Forks are not deleted — if other users have forked your repo, their copies remain intact and independent
What deletion does not affect is any local clone of the repository. If you or a collaborator has a local copy on a machine, that code still exists there. The Git history, commits, and files remain in any local clone, completely unaffected by the remote deletion.
How to Delete a Repository on GitHub (Step by Step)
Via the GitHub Website
- Navigate to the repository you want to delete
- Click the Settings tab (you must be the repo owner or have admin access)
- Scroll to the bottom of the Settings page to the Danger Zone section
- Click Delete this repository
- GitHub will prompt you to type the full repository name to confirm — this is a deliberate friction step
- Click the final confirmation button
The entire process takes about 30 seconds, but the name-typing confirmation is GitHub's way of forcing you to be intentional. It's easy to ignore how permanent this is until you're typing out the repo name manually.
Via the GitHub CLI
If you work in the terminal, you can delete a repo using the GitHub CLI: