SaltfishTry for free

How to Delete a Fork in Github

·2 min read
In this article

Forked repositories can accumulate over time in your GitHub account, making it cluttered and harder to navigate. Whether you've completed a project, no longer need a fork, or simply want to clean up your repository list, deleting unnecessary forks is a straightforward process.

This tutorial will walk you through the complete process of permanently removing a forked repository from your GitHub account. Once deleted, the fork cannot be recovered, so make sure you've saved any important changes before proceeding.

Here's how to delete a fork in GitHub

  1. Navigate to your GitHub profile by clicking your profile picture in the top-right corner.
  2. Select 'Your repositories' from the dropdown menu that appears.
  3. Find and click on the forked repository you want to delete from your repository list.
  4. Click on the 'Settings' tab located in the top navigation bar of the repository.
  5. Scroll down to the bottom of the Settings page to locate the 'Danger Zone' section.
  6. Click the 'Delete this repository' button within the Danger Zone area.
  7. Press the 'I want to delete this repository' button to proceed with deletion.
  8. Check the box next to 'I have read and understand these effects' to acknowledge the consequences.
  9. Type the exact repository name in the text field when prompted to confirm deletion.
  10. Click the final 'Delete this repository' button to complete the deletion process.
  11. Enter your GitHub password if prompted and click 'Confirm' to finalize the action.

Your turn to show how it works.

Build a walkthrough of your product with Saltfish, then share it with your customers.

Create a guide with Saltfish

Frequently Asked Questions

No, once you delete a forked repository, it cannot be recovered through GitHub. The deletion is permanent and irreversible. If you need the repository again, you'll have to fork it anew from the original source.