Use the following to delete a user in terminal: replace “username” with the account name.
Hide a user account in the macOS login window: replace “hiddenuser” with the account name.
If you want to show the hidden user, set the user’s IsHidden attribute to 0: replace “hiddenuser” with the account name.
This command moves the home directory of “hiddenuser” to /var, a hidden directory. Replace “hiddenuser” with account name.
This command updates the user record of “hiddenuser” with the new home directory path in /var.
This command removes the Public Folder share point for the user with the long name “Hidden User”.