userdel
DestructiveDelete a user
userdel -r <user>
Removes a user. -r also deletes the home dir and mail spool. Back up data before offboarding.
Examples
userdel -r taroDelete with home directory
Syntax
userdel [-r] <user>
Before you run it
-r permanently deletes home data.
Check it once more before you run it
Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.
Get it free on the App Store