How to Delete a User Account on macOS?

Dylan Wang
Mac O’Clock
Published in
1 min readJun 11, 2020

Also include hidden administrator account

Photo by Markus Spiske on Unsplash

1. Follow the command to Delete a User Account

$ sudo /usr/bin/dscl . -delete /Users/<USER_ACCOUNT>

$ sudo /usr/bin/dscl . -delete /Users/dylan

2. List all User Accounts

$ /usr/bin/dscl . -list /Users

3. Show a User Account Information

$ /usr/bin/dscl . -read /Users/<USER_ACCOUNT>

$ /usr/bin/dscl . -read /Users/dylan

Reference:

--

--