Owners can set permissions for deleting or transferring repositories in an organization.
Limiting the ability to delete or transfer repositories helps prevent sensitive information from being exposed. For more information, see Best practices for preventing data leaks in your organization.
Setting a blanket policy
- In the upper-right corner of GitHub, select your profile photo, then click Your organizations.
- Next to the organization, click Settings.
- In the "Access" section of the sidebar, click Member privileges.
- Under "Repository deletion and transfer", select or deselect Allow members to delete or transfer repositories for this organization.
- Click Save.
Setting a more flexible policy (public preview)
You can create a repository policy to govern who can delete or transfer repositories in your organization. Compared to "member privilege" policies, repository policies give you more flexibility over which users the policies apply to and which repositories are targeted. See Governing how people use repositories in your organization.