Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't delete admin user in High Sierra

Hello, I created admin account called "admin" on my new MacBook Pro to use Migration Assistant to transfer my user account from my old computer's time machine backup. After all done I still can't delete the original admin account from the new user account. Admin account is logged out and I'm deleting it from another admin account.


When trying to delete it from Terminal with "sudo dscl . -delete /Users/admin" I get this err:


<main> delete status: eDSPermissionError

<dscl_cmd> DS Error: -14120 (eDSPermissionError)

MacBook Pro TouchBar and Touch ID, macOS High Sierra (10.13)

Posted on Sep 27, 2017 2:12 AM

Reply
Question marked as Top-ranking reply

Posted on Oct 25, 2017 9:44 AM

I hope to be able to solve this issue for you and it seems to stem (in my case anyway) from using migration assistant. If you install the new operating system, create a new user account and login and then migrate there seems to be some sort of conflict. Quite what that conflict is I am not sure but I think it relates to the UID/USER ID and password.


You could try this and let me know if it works for you to help anyone else should they run into this issue.


1. LOG OUT of all accounts.

2. LOG IN to the account you wish to delete.

3. CHOOSE SYSTEM PREFERENCES>USERS & GROUPS

4. Click the Padlock and Authenticate.

5. Choose the account in the list that YOU WISH TO KEEP. Remember you should be currently logged into the account you wish to delete.

6. Click CHANGE PASSWORD and change the password of the account which you wish to keep to something else other than that which you were using.

7. LOG OUT of the account.

8. LOG BACK IN to the account you wish to keep with your new password.

9. GO BACK TO SYSTEM PREFERENCES>USERS & GROUPS, click the padlock, authenticate and hopefully when you click on the account you wish to delete the minus symbol will be available and you can simply remove the account.

10. Change your password back to your usual password if thats what you want to do.


Again please do let people know if this works to help others with the same issue. Similarly if it doesn't work for you please also let post and let people know.


Good luck and hopefully this will do the trick for you and any other people running into this issue.


All the best. 😉


Stefan

43 replies

Dec 16, 2017 5:54 PM in response to jkrcmar

For those who haven't been able to get the UUID trick to work, which I wasn't able to at first, I have a possible tip.


When first attempting to delete the original account, I unchecked "Allow user to administer this computer" thinking it'd make it able to be deleted. It didn't of course, so I came to this thread and discovered the UUID (or GenID) trick. But alas, that too didn't work.


After a full shutdown and restart, hoping to flesh out the gremlin, I logged into the original account. I went into Users & Groups and clicked the padlock. Since I previously removed Admin access to this account, I had to login with the new admin account credentials. I then re-checked "Allow user to administer this computer".


I logged out, logged in as the new admin account, went to Users & Groups...then BOOM. The "-" minus button was no longer greyed out.


I don't believe the checking/unchecking itself was responsible, but perhaps it needed to be Admin again for the GenID/UUID trick to work.


Worth a shot.

Dec 16, 2017 7:33 PM in response to Stefan2908

Thank you, Stefan!


This worked for me on High Sierra. Like others, I had to set up a temp Admin account for installing High Sierra. Then I imported my prior account via Time Machine. But I could not subsequently delete the original temp admin account. Stefan's solution worked for me. Notably, when I reached step 8 in his instructions (logging back in to the account I wanted to keep), I had to re-authorize my iCloud account in System Preferences. Happy to finally be rid of that temp account.

Dec 18, 2017 4:11 PM in response to LeGaTTiS

I had success accessing the greyed out Guest User options in System Preferences by using Stefan's previous work around but I still have a phantom guest user pop up as an option when I would restart my MBP in High Sierra. Well, I just ran the last update for the OS on the app store and low and behold, phantom guest user disappeared. Restarted a bunch of times and its true. No phantom guest. Hope that helps anyone still with this issue.


Tr3nton

Jan 24, 2018 11:51 PM in response to jkrcmar

Not sure if this will help, however, after spending a lot of time searching the Apple forums for the answer for wanting to delete an Admin in MacBook Air. Not sure, but am assuming it will work for Pro as well. It actually is quite simple. Hope this helps.


If you have 2 Admin accounts and you are wanting to delete one:

First, you must restart your computer so that your Login page pops up showing both Admin avatars.

Both Admins are going to appear and will have red check marks under them. (This is why skipping this step will only bring you to the "grayed box" in Users and Groups). MAC thinks both are in use.

Uncheck to Admin you wish to delete.

Now go to Apple Menu>System Preferences>Users & Groups>Unlock the padlock down at the bottom left of the screen>Since the Admin is now not in use you will see it is black>Click on it>Go to the bottom of the page and click on the minus sign ➖ to remove it.

I then restarted my computer so changes would be sure to take effect.


Once again, I hope this helps someone having the same issue, if not, please disregard.

Feb 21, 2018 10:13 AM in response to jkrcmar

After everything else failed, including the PepeMac answer, I could not change the GeneratedUID digit (got some error, can't remember). I did the most simple thing.

Went to MacHD/users/ (replace MacHD with whatever you named you hard disc) and simply moved the user I wanted to the trash.

Then, after restart, I went back to System Preferences and was able to remove the user (placeholder leftover really) from the System Preferences with the ➖ sign.

It is simply U N B E L I E V A B L E to get stuck like this. Shame!!

Spent hours trying to remove personal account from a work computer. Just terrible.

Can't delete admin user in High Sierra

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.