Unable to delete users
I created two accounts on my MBP running High Sierra. Both were set with Parental Controls. I no longer need them and want to delete them but cannot do so.
If I use the "Users & Groups" pane from System Preferences select one of the accounts the "-" needed to delete that account is ghosted out so can't be selected (yes I am admin and yes I clicked the unlock and no the account is not logged in).
If I run the dscl command this fails with a permission error:
sudo /usr/bin/dscl . -delete "/Users/student"
Password:
<main> delete status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)
If I run the Directory Utility command, click the Directory Editor tab, then select the account and hit the "-" at the bottom it shows no reaction in the UI but there is an entry in the Console. But the error is bogus as this is not the last FileVault capable user (nor was it the first one created):
Couldn't delete record "student" of type "dsRecTypeStandard:Users": Error Domain=com.apple.OpenDirectory Code=4001 "Attempting to delete the last FileVault capable user" UserInfo={NSLocalizedDescription=Attempting to delete the last FileVault capable user, NSLocalizedFailureReason=Operation was denied because the current credentials do not have the appropriate privileges.}
At a loss for how to get rid of these accounts. I can delete the home directories manually. What I'm looking for is to avoid them showing up on the login screen at all. I tried setting the shell for one of them to false but that only hides it from view when the MBP is already running. It still shows up on a reboot. Any solutions appreciated.
MacBook Pro (Retina, 13-inch, Late 2013)