👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.
Article version: Enterprise Server 2.21

Preventing users from deleting organization repositories

You can prevent members from deleting or transferring repositories in organizations on your GitHub Enterprise Server appliance.

Were you able to find what you were looking for?

  1. In the upper-right corner of any page, click .

    Rocketship icon for accessing site admin settings

  2. In the left sidebar, click Enterprise.

    Enterprise tab in the Site admin settings

  3. In the enterprise account sidebar, click Policies.

    Policies tab in the enterprise account sidebar

  4. Under " Policies", click Repositories.

    Repositories tab in the enterprise account settings sidebar

  5. Under "Repository deletion and transfer", review the information about changing the setting. Optionally, to view the setting's current configuration for all organizations in the enterprise account before enforcing the setting, click View your organizations' current configurations.

    Link to view the current policy configuration for organizations in the business

  6. Under "Repository deletion and transfer", use the drop-down menu and choose a policy.

    Drop-down menu with repository deletion policy options

Were you able to find what you were looking for?

Ask a human

Can't find what you're looking for?

Contact us