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.
- If the user is the only owner: Transfer ownership to another person, or delete the organization. See Transferring organization ownership and Deleting an organization account.
- If there are other owners: Remove the user from the organization. See Removing yourself from an organization.
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.
- From an administrative account on GitHub Enterprise Server, in the upper-right corner of any page, click .
- If you're not already on the "Site admin" page, in the upper-left corner, click Site admin.
- Under "Search users, organizations, teams, repositories, gists, and applications", type the name of the user in the text field.
- To the right of text field, click Search.
- 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.
- Review the user details in the site admin page to confirm you have identified the correct user.
- In the upper-right corner of the page, click Admin.
- Under "Delete account," in the "Danger Zone" section, click Delete this account.
- 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.
- Click Delete this account.