Delete Local Account in OS X Using the Command Line

To delete a local account on an OS X system using the command line you need to issue two commands.  The two steps are:

  1. Delete the actual account from the local user database
  2. 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:

 




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:
  1. Network connection failover
  2. Eliminates unnecessary wireless traffic, and Multi-homed computers.
We are now offering a pkg installer for this script to anyone that signs up for our mailing list.