Follow our step-by-step guide to delete your GitHub repository—sign in, navigate settings, confirm in the Danger Zone, and verify its removal (including API deletion).
Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
Step 1: Sign in to your GitHub account
Before you can delete any repository, you must be authenticated. If you’re not already signed in:
Step 2: Navigate to the repository you want to delete
Once signed in, locate the repository in one of these ways:
Step 3: Open the repository’s Settings page
On the repository main page:
Step 4: Scroll down to the Danger Zone
The bottom of the Settings page contains critical actions:
Step 5: Initiate repository deletion
In the Danger Zone:
Step 6: Confirm repository name
To ensure you really want to delete:
username/repository-name
) into the confirmation field.
Step 7: Finalize deletion
Once you’ve entered the name correctly:
Step 8: (Optional) Deleting via GitHub REST API
You can also delete a repository programmatically using the GitHub API. For example, using curl
:
curl -X DELETE \\
-H "Accept: application/vnd.github+json" \\
-H "Authorization: Bearer YOUR_PERSONAL_ACCESS\_TOKEN" \\
https://api.github.com/repos/USERNAME/REPOSITORY-NAME
YOUR_PERSONAL_ACCESS\_TOKEN
with a token that has repo scope.USERNAME
and REPOSITORY-NAME
with your own values.204 No Content
.
Step 9: Verify that the repository is gone
After deletion completes:
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.