How to delete a user if the password is not entered

How to delete a user if the password is not entered In the settings does not accept MacOS 10.14.6



[Edited by Moderator]

MacBook Air 11″, macOS 10.14

Posted on Jul 18, 2025 12:29 PM

Reply
5 replies

Jul 18, 2025 06:53 PM in response to Yurasad

Yurasad wrote:

Initially, I had a system installation failure in recovery mode. I suspect that the user was installed from a previous operating system...


It’s quite possible this Mac has not been released from its (current) ownership.


If so, that is Activation Lock.


That will cause problems when trying to re-install macOS, among other limits.


What’s the history of this Mac?


Is the seller or original owner still available?

Jul 18, 2025 06:07 PM in response to Yurasad

Yurasad wrote:

Initially, I had a system installation failure in recovery mode. I suspect that the user was installed from a previous operating system.

No, it is installed along side the user name "Test". I think @Ikrupp is onto something with a used Mac that was not properly prepared for sale:

What to do before you sell, give away, trade in, or recycle your Mac - Apple Support


If so, then you can only start at Step #6 to perform a clean install in order to completely wipe out the previous owner's setup. Who knows what nasty surprises they may have left behind. In fact, even if the previous owner performed all those steps, I still recommend people start at Step #6 for the clean install in order to know it was performed correctly (it also helps you to learn how to do it) and it may even reveal whether the device is still being managed by a previous owner.


When I try to delete it from the terminal using "sudo dscl. -delete /Users/admin", I get the error message "Wrong path".
<dscl_cmd> DS error: -14009 (Unknown username)

You only have two admin user accounts on that system. One is named "Fred" and the other one is "Test". You don't have any macOS user accounts named "admin".


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to delete a user if the password is not entered

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