To delete a local account on an OS X system using the command line you need to issue two commands. The two steps are:
- Delete the actual account from the local user database
- Delete the accounts home folder
If I wanted to delete a local account with a short name of “bobross” then I would issue the commands:
Command Line Delete Account
dscl localhost delete /Local/Default/Users/bobross
rm -rf /Users/bobross
Interested In A Free Installer?
Our custom Wifi On/Off script has been a popular post!
This script automatically turns off the wireless interface on a computer when it is connected to a wired network, and turn the wireless interface back on when it is disconnected from the wired network.
This script has two main benefits:
- Network connection failover
- Eliminates unnecessary wireless traffic, and Multi-homed computers.