How to delete a Windows or macOS user account

Updated: 03/05/2023 by Computer Hope
User account icons

If many people use a computer, it may have multiple user accounts. Sometimes, you need to clean up the user accounts and delete those that are unused or unwanted. To learn how to delete a user account on a Mac or Windows-based PC, select your operating system from the following list for instructions.

Note

The following steps require an administrator account.

Windows 11

Windows 11 logo
  1. Press the Windows key, type Control Panel, and then press Enter.
  2. Under the User Accounts section, click User Accounts.

User Account option in the Windows 11 Control Panel.

  1. Click the Remove user accounts link.

Remove user account link in Windows 11.

  1. Select the user account you want to delete.
  2. On the Change an Account screen, click Delete the account.

Delete user account in Windows

  1. In the Delete Account window, if you want to keep any files associated with the user account, click Keep Files. If you want to remove all files associated with the user account, click Delete Files.
  2. Click Delete Account to confirm user account deletion.

Windows 8 and 10

Windows 10
  1. Press the Windows key, type Control Panel, and then press Enter.
  2. Under the User Accounts section, click User Accounts.

Change account type link in Windows 10

  1. Click the Remove user accounts link.

Remove user account link.

  1. Select the user account you want to delete.
  2. On the Change an Account screen, click Delete the account.

Delete user account in Windows

  1. If you want to keep any files associated with the user account, click Keep Files. If you want to remove all files associated with the user account, click Delete Files.
  2. Click Delete Account to confirm user account deletion.

Windows Vista and 7

Windows 7, Vista
  1. Open the Control Panel.
  2. Click the User Accounts option.
  3. Click User Accounts again, then the Manage User Accounts option.
  4. On the Users tab, find the user account you want to delete under the Users for this computer section. Click that user account name.
  5. Click the Delete this account option on the left side of the window.
  6. If you want to keep any files associated with the user account, click Keep Files. If you want to remove all files associated with the user account, click Delete Files.
  7. Click Delete Account to confirm user account deletion.

Windows XP

Windows XP
  1. Open the Control Panel.
  2. Double-click the User Accounts option.
  3. Click the user account name you want to delete.
  4. Click the Delete the account option.
  5. If you want to keep any files associated with the user account, click Keep Files. If you want to remove all files associated with the user account, click Delete Files.

Windows Command Prompt

Windows command line
  1. Open Windows Command Prompt with elevated permissions.
  1. At the command line, type net user /delete <username>, where <username> is the name of the user account you want to delete.

    For example, to delete a user account named myaccount, type the following command.

net user /delete myaccount

macOS

macOS Big Sur
  1. In the menu bar, click the Apple icon to open the Apple menu.
  2. In the Apple menu, click System Preferences.

System Preferences selector in macOS.

  1. Click the Users & Groups shortcut icon.

Users & Groups icon in macOS.

  1. Click the lock symbol in the lower-left corner of the Users & Groups window.

Lock icon in macOS.

  1. When prompted, enter your password and click the Unlock button.
  2. On the left side of the window, select the account you want to delete.
  3. Below the list of users, click the remove button, which looks like a minus sign.
  4. If you want to keep files associated with the user account on the computer, select the Save the home folder in a disk image or Don't change the home folder option. If you want to remove all files associated with the user account, select the Delete the home folder option.
  5. Click Delete User to confirm user account deletion.