Deleting Forked Git Repositories

It’s possible to delete forked Git repositories (tested on GitHub) using the following methods by the following actors:

  • 🀡 Owner - GitHub code repository owner
  • πŸ§‘β€πŸ€β€πŸ§‘ Collaborator - GitHub user invited by the code Owner to collaborate in the repository
  • πŸ§‘β€πŸ’» Forker (non-Collaborator) - GitHub users with access to public GitHub repositories. They do not require a Collaborator invite by Owners

🌐 Public Git Repository

  1. No Collaborator invite

    • πŸ§‘β€πŸ’» Forker (non-Collaborator) forks a "public" repo
    • 🀡 The Owner deletes the public repo
    • βœ… Forker retains the forked public repo
  2. With Collaborator invite

    • 🀡 The Owner invites a πŸ§‘β€πŸ€β€πŸ§‘ Collaborator to a "public" repo
    • πŸ§‘β€πŸ€β€πŸ§‘ The Collaborator forks the public repo
    • 🀡 The Owner deletes the public repo
    • ❌ Forked public repo disappears

🚫 Private Git Repository

  1. With Collaborator invite
    • 🀡 Owner invites a πŸ§‘β€πŸ€β€πŸ§‘ Collaborator to a "private" repo
    • πŸ§‘β€πŸ€β€πŸ§‘ Collaborator forks the private repo
    • 🀡 Owner deletes the *private repo
    • ❌ Forked private repo disappears

References