How to Delete a Forked Repository on GitHub

Forking a repository is a great way to contribute to open-source projects or build upon existing code. But if you no longer need a forked repo, you can safely delete it from your GitHub account.


✅ Steps to Delete a Forked Repository

  1. Log in to GitHub
    Go to https://github.com and sign in to your account.
  2. Navigate to the Forked Repository
    Click on your profile icon → “Your repositories” → Select the forked repo you want to delete.
  3. Go to Repository Settings
    On the repo’s main page, click the “Settings” tab (you must be the owner of the fork to see this option).
  4. Scroll Down to the Danger Zone
    At the bottom of the settings page, you’ll find the “Danger Zone” section.
  5. Click “Delete this repository”
    • Click the red “Delete this repository” button.
    • GitHub will ask you to confirm by typing the full repository name (e.g., username/repo-name).
    • Click “I understand the consequences, delete this repository.”
  6. Done!
    The forked repository will be permanently deleted from your account.

⚠️ Things to Keep in Mind

  • Deleting a forked repository does not affect the original repository.
  • Once deleted, issues, pull requests, and forks associated with your fork are also permanently removed.
  • Make sure to back up any local changes before deleting.

🧠 Tip: Remove Local Clone (Optional)

If you cloned the repo locally, you can delete the folder manually, or via terminal:

rm -rf repo-name

📋 Summary Table

TaskHow to Do It
Access settingsGo to forked repo > Settings tab
Delete repositoryScroll to “Danger Zone” > Delete
Confirm deletionType repo name and confirm
Local cleanup (optional)Delete folder manually or use rm -rf
Sharing Is Caring:

Leave a Comment