Skip to main content
Git FAQ
Frequently asked questions around Git and Version Control.
Git FAQ featured image

How to Delete a Repository on GitHub

After working on some coding projects for some time, your GitHub account might be flooded with repositories. Here's a short guide on how to delete a remote repository on GitHub.com.

The Git Cheat Sheet

No need to remember all those commands and parameters: get our popular "Git Cheat Sheet" - for free!


Before You Delete

A few things worth checking first:

1. Teamwork: you might not need the repository anymore, but in case you’re working in a team, you should make sure that your teammates also don’t need it anymore!
2. Permissions: only users with "admin" or "owner" permissions can delete a repository. If you don’t see the delete option in Settings, you likely don’t have the required role.
3. Sure? Double-check that you have the right repository. Once deleted, issues, pull requests, wikis, and release attachments are gone — there’s no recycle bin. You have 90 days to request a restore through GitHub support, but that only recovers the repository itself, not the associated data.
4. Forks: Deleting a public repository does not remove any forks that already exist, but deleting a private repository removes all of its forks. If you’re deleting a fork, this has no effect on the original upstream repository.

Deleting a Repository

When you’ve made the decision to delete, open the "Settings" page for the repository. Scroll all the way to the bottom and you’ll find the button "Delete this repository".

Not Sure? Archive It Instead

If you want to stop actively working on a repository without losing it, archiving is a good middle ground. An archived repository becomes read-only — no new commits, issues, or pull requests — but everything stays accessible and searchable.

To archive, go to Settings → General, scroll down to the "Danger Zone" section, and click "Archive this repository". You’ll need to confirm by typing the repository name. Archived repositories can be unarchived later from the same place.

About Us

As the makers of Tower, the best Git client for Mac and Windows, we help over 100,000 users in companies like Apple, Google, Amazon, Twitter, and Ebay get the most out of Git.

Just like with Tower, our mission with this platform is to help people become better professionals.

That's why we provide our guides, videos, and cheat sheets (about version control with Git and lots of other topics) for free.