Skip to main content

Enterprise Server 3.15 в настоящее время доступен в качестве кандидата на выпуск.

Удаление пользователей из экземпляра

Вы можете удалить учетную запись пользователя, чтобы окончательно удалить данные из ваш экземпляр GitHub Enterprise Server.

Кто может использовать эту функцию?

Site administrators

What happens when I delete a user account?

Deleting a user account removes all repositories, forks of private repositories, wikis, issues, pull requests, pages, and packages and container images owned by the user account. By deleting a user account, you may break software projects and workflows that depend on these things.

Issues and pull requests the user has created and comments they've made in repositories owned by other users or organizations will not be deleted and will instead be associated with a ghost user account.

Once a user account has been deleted, the username will be available for use with a different account on your GitHub Enterprise Server instance.

When can I delete a user account?

You cannot delete a user that is currently an organization owner.

You cannot delete your own user account. If you need to delete your own user account, ask another site administrator to delete your account for you.

If you have enabled SCIM provisioning on your instance, you cannot delete users who have been provisioned by SCIM.

Should I delete or suspend a user account?

GitHub recommends suspending users where possible, rather than deleting their accounts. Suspending user accounts on GitHub Enterprise Server preserves the history of resources owned by the user account, such as repositories and pull requests, and releases the licensed seat previously consumed by the user. See "Suspending and unsuspending users."

As an alternative to deleting or suspending a user account, to stop a user's repositories being permanently removed from your enterprise you can place a legal hold on the user account. See "Placing a legal hold on a user or organization."

Deleting a user from the site admin dashboard

Before deleting a user account, you should consider if a backup or copy of the repositories, private forks, wikis, issues, and pull requests owned by the user account is required. See "Configuring backups on your instance" and "Backing up a repository."

  1. From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .
  2. If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.
  3. Under "Search users, organizations, teams, repositories, gists, and applications", type the name of the user in the text field.
  4. To the right of text field, click Search.
    Screenshot of the "Search" page of the "Site admin" settings. The button to search users, labeled "Search," is highlighted with an orange outline.
    • If an exact account name match isn't found, under "Search results – Accounts", in the "Fuzzy matches" section, click the name of the user you want to manage.
      Screenshot of search results in the "Site admin" settings. In the "Fuzzy matches" section, an example user name is highlighted with an orange outline.
  5. Review the user details in the site admin page to confirm you have identified the correct user.
    Screenshot of the Site admin account overview page.
  6. In the upper-right corner of the page, click Admin.
    Screenshot of the header of the "Site admin" page for a user or repository. The "Admin" tab is highlighted with an orange outline.
  7. Under "Delete account," in the "Danger Zone" section, click Delete this account.
  8. In the "Delete account" dialog box, under "Make sure you want to do this", review the changes. To confirm, enter the username of the account to be deleted.
  9. Click Delete this account.

Further reading