sodcalculator

10 Tech How-To

Delete a User, Guest & Admin Account on Mac

Guide 10-53344 · Updated · Step by step

This guide shows you how to permanently remove a standard user, a guest account, and an administrator account from your Mac. You’ll need to be logged in as an admin (or know the admin username and password) to make these changes. Deleting an account also erases its home folder unless you choose to keep it as a disk image or in place.

What You’ll Need

  • An administrator account on the Mac (the one you’re logged into or one you can authenticate with).
  • The password for that administrator account.
  • If you’re deleting an admin account, you must have another admin account available to perform the deletion.

Step-by-Step

  1. Open System Settings (or System Preferences on older macOS versions). Click the Apple menu and select System Settings (macOS Ventura and later) or System Preferences (macOS Monterey and earlier).
  2. Go to Users & Groups. In System Settings, click Users & Groups in the sidebar. In System Preferences, click Users & Groups.
  3. Unlock the settings. If the padlock icon at the bottom left is locked, click it and enter your administrator username and password. This enables you to make changes.
  4. Select the account you want to delete. Click the user name (or “Guest User”) in the list on the left. Do not select your own account if it’s the only admin – you can’t delete the last admin.
  5. Click the minus (–) button. It’s below the list of users. A confirmation pop-up will appear.
  6. Choose what to do with the home folder. You’ll see options like:
    • Save the home folder in a disk image – creates a .dmg file with the user’s files.
    • Don’t change the home folder – leaves the folder in /Users/ but removes the account.
    • Delete the home folder – permanently erases all files in that user’s home folder.

    Pick the one that fits. For a guest account, you won’t get these options – it’s simply turned off.

  7. Confirm the deletion. Click Delete User (or OK). You may need to enter your admin password again.
  8. For the Guest User account specifically: In the same Users & Groups pane, click Guest User and toggle off Allow guests to log in to this computer. That disables it. To completely remove the guest account (it’s a system-managed account), you don’t need to delete it – disabling is the standard way.

Common Mistakes

  • Deleting your only admin account. macOS won’t let you delete the last administrator. If you try, you’ll get an error. You must create another admin first.
  • Forgetting to back up important files. If you choose “Delete the home folder,” all files, photos, and documents are gone permanently. Always back up first if there’s any doubt.
  • Confusing “Guest User” with a standard account. The Guest User is a special account that resets each login. You can’t delete it like a normal user; you just turn off guest access.
  • Not unlocking the settings. If you skip the padlock step, the minus button is greyed out and you can’t make changes.

Tips

  • Before deleting, log out of the account you’re removing (if it’s currently logged in) and log in as another admin.
  • If you choose “Save the home folder in a disk image,” the .dmg file is saved in /Users/Deleted Users/. You can open it later to extract files.
  • To avoid data loss, use the “Don’t change the home folder” option if you plan to manually recover files later.
  • After deleting an admin, make sure you have at least one other admin account to manage the Mac.
  • If you’re selling or giving away the Mac, consider erasing the entire drive instead of just deleting accounts.

Troubleshooting

“The minus button is greyed out.” This usually means the settings are locked. Click the padlock and enter your admin credentials. If you’re not an admin, you can’t delete accounts.

“You can’t delete this user because it’s the only admin.” Create another admin account first (click the plus button, choose “Administrator” as the role), then log into that new account and delete the old one.

“The Guest User option is missing.” In newer macOS versions, Guest User may be hidden if FileVault is enabled. You can still disable guest access by turning off “Allow guests to log in” in the same pane. If you want to remove the guest account entirely, you’d need to disable FileVault first, but that’s rarely necessary.

“I deleted the account but the home folder still exists.” That’s normal if you chose “Don’t change the home folder.” You can manually delete the folder in Finder, but be careful – it may contain files you need.

“I can’t log in after deleting an admin.” If you deleted the only admin by accident, restart the Mac, hold Command+R to enter Recovery Mode, and use Terminal to create a new admin account. This is advanced – you can also reinstall macOS if needed.

“The account I deleted still appears on the login screen.” This can happen if the home folder wasn’t deleted. The account is gone, but the folder may show as a user. You can remove it by deleting the folder in /Users/ (you’ll need admin rights).

Frequently Asked Questions

Can I delete the guest account completely? No, the Guest User is a system account that always exists. You can disable it by turning off “Allow guests to log in.” It won’t appear on the login screen after that.

What happens to the user’s files when I delete the account? It depends on the option you choose. “Delete the home folder” erases everything. “Save in a disk image” creates a compressed backup. “Don’t change the home folder” leaves the folder in /Users/ but removes the account.

How do I delete a user from Terminal? You can use the sysadminctl -deleteUser command, but it’s riskier. For example: sudo sysadminctl -deleteUser username. This deletes the account and optionally the home folder with -secure or -keepHome flags. Only use this if you’re comfortable with the command line.

Can I delete an admin account while logged into it? No, you must be logged into a different admin account. macOS prevents you from removing the account you’re currently using.

Is there a way to undo deleting a user? If you chose “Save in a disk image,” you can restore the account by creating a new user and importing the files from the .dmg. If you chose “Delete the home folder,” there’s no undo – you’d need a Time Machine backup.

Why can’t I delete a user that’s currently logged in? macOS won’t let you delete an account that is actively logged in. Log out of that account first, then log in as another admin and repeat the steps.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →