Deleting A Repository - GitHub Docs

Skip to main contentHome

Repositories

  • Create & manage repositories
    • About repositories
    • Best practices
    • Quickstart for repositories
    • Repository limits
    • Creating a new repository
    • Access to repositories
    • Create from a template
    • Create a template repo
    • Issues-only repository
    • Duplicating a repository
    • Cloning a repository
    • Troubleshooting cloning errors
    • Renaming a repository
    • Transferring a repository
    • Deleting a repository
    • Restore deleted repository
    • View all repositories
  • Manage repository settings
    • Repository access and collaboration
      • Invite collaborators
      • Remove a collaborator
      • Repository permissions
      • Remove yourself
      • Ownership continuity
    • Customize your repository
      • About READMEs
      • Licensing a repository
      • Display a sponsor button
      • Social media preview
      • Classify with topics
      • About code owners
      • Repository languages
      • About CITATION files
    • Enable features
      • Disabling issues
      • Disable projects
      • Manage GitHub Actions settings
      • Discussions
      • Security & analysis
    • Manage repository settings
      • Repository visibility
      • Teams & people
      • Manage the forking policy
      • Manage pull request reviews
      • Manage default branch name
      • Manage the commit signoff policy
      • Manage the push policy
      • Managing Git LFS objects in archives
      • Email notifications for pushes
      • Configure autolinks
      • Manage auto-closing issues
      • Manage models
  • Branches and merges
    • Manage branches
      • View branches
      • Renaming a branch
      • Change the default branch
      • Delete & restore branches
    • Configure PR merges
      • About merge methods
      • Configure commit merging
      • Configure commit squashing
      • Configure commit rebasing
      • Managing merge queue
      • Manage branch updates
      • Manage auto merge
      • Automatic branch deletion
    • Manage protected branches
      • About protected branches
      • Branch protection rule
    • Manage rulesets
      • About rulesets
      • Create a ruleset
      • Manage a ruleset
      • Available rules
      • Troubleshooting
  • Work with files
    • Managing files
      • Creating new files
      • Add a file
      • Move a file
      • Edit files
      • Renaming a file
      • Delete files
      • How changed files appear
    • Using files
      • Navigating code on GitHub
      • View and understand files
      • Permanent links to files
      • Source code archives
      • Working with non-code files
    • Managing large files
      • Large files
      • Git Large File Storage
      • Install Git LFS
      • Configure Git LFS
      • Collaboration
      • Move a file to Git LFS
      • Remove files
      • Resolve upload failures
  • Release projects
    • About releases
    • Manage releases
    • View releases & tags
    • Searching releases
    • Linking to releases
    • Comparing releases
    • Automated release notes
    • Automate release forms
  • View activity and data
    • View deployment activity
    • About repository graphs
    • Using Pulse
    • View repository traffic
    • View project contributors
    • Analyze changes
    • Connections between repositories
    • Using the activity view
  • Archive a repository
    • Archiving repositories
    • Archive content & data
    • Reference & cite content
    • Backing up a repository
  • Repositories/
  • Create & manage repositories/
  • Deleting a repository
Deleting a repository

You can delete any repository or fork if you're either an organization owner or have admin permissions for the repository or fork. Deleting a forked repository does not delete the upstream repository.

Only members with owner privileges for an organization or admin privileges for a repository can delete an organization repository, and these users may be prevented from deleting a repository by an organization or enterprise policy. For more information, see Repository roles for an organization.

Deleting a public repository will not delete any forks of the repository.

Warning

  • Deleting a repository will permanently delete release attachments and team permissions. This action cannot be undone.
  • Deleting a private repository will delete all forks of the repository.

Some deleted repositories can be restored within 90 days of deletion. For more information, see Restoring a deleted repository.

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. On the "General" settings page (which is selected by default), scroll down to the "Danger Zone" section and click Delete this repository.

  4. Click I want to delete this repository.

  5. Read the warnings and click I have read and understand these effects.

  6. To verify that you're deleting the correct repository, in the text box, type the name of the repository you want to delete.

  7. Click Delete this repository.

Từ khóa » Xóa Github