Skip to main content

This version of GitHub Enterprise was discontinued on 2022-06-03. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Placing a legal hold on a user or organization

You can place a legal hold on a user or organization to ensure that repositories they own cannot be permanently removed from your enterprise.

Usually, if someone deletes a repository, it will be available on disk for 90 days and can be restored via the site admin dashboard. After 90 days the repository is purged and deleted forever. If you place a legal hold on a user or organization, repositories they own are available for restore indefinitely.

  1. Sign in to your GitHub Enterprise Server instance at http(s)://HOSTNAME/login.

  2. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .

    Screenshot of the rocket ship icon for accessing site admin settings

  3. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.

    Screenshot of "Site admin" link

  4. In the search field, type the name of the user or organization and click Search. Site admin settings search field

  5. In the search results, click the name of the user or organization. Site admin settings search options

  6. In the upper-right corner of the page, click Admin. Admin Tools

  7. In the left sidebar, click Admin. Admin Tools

  8. Click Place legal hold. Place legal hold button