+ Post New Thread
Results 1 to 5 of 5
Mac Thread, Deleting a Mac User that won't delete .. in Technical; Right, basically the situation is this. I have a MacBook Pro that went in for some repairs a while ago, ...
  1. #1
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78

    Deleting a Mac User that won't delete ..

    Right, basically the situation is this.

    I have a MacBook Pro that went in for some repairs a while ago, and to save giving away any of the passwords, I set up an Admin account for Apple (ok they could probably get round things, they built the stuff in the first place but that's beside the point .. lol).

    Anyway, the MacBook Pro has been working fine and I figured I'd tidy up by deleting the user that I'd set up. So, as you do in Snow Leopard, I went to System Preferences > Accounts > unlocked the account pane with my details, highlighted the Apple User and click the "-" button.

    It started doing it's thing so I left it to it. Came back to it a while later to find it was still spinning and, in fact, it was the beach ball of doom whirling around to itself. The system preferences had crashed, I couldn't force quit it, or start anything else.

    I left it a while longer, just in case, but eventually had to hard power off the machine.

    So, I was wondering (given all the flippin' Mac forums are blocked on LancsNGFL .. GAH!) if anyone can give me a quick how to on deleting a user through Terminal or some other such method?

    Thanks all

  2. #2


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,754
    Thank Post
    221
    Thanked 2,627 Times in 1,937 Posts
    Rep Power
    779
    This command should do it (in Terminal).

    Code:
    sudo rm -rf /Users/example

  3. Thanks to Arthur from:

    soveryapt (27th January 2011)

  4. #3
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by Arthur View Post
    This command should do it (in Terminal).

    Code:
    sudo rm -rf /Users/example
    Won't that just delete the users folder though? I'm on about removing the user from the Accounts pane as well. In fact, just had a look, and looks like it deleted the users folder fine (it's not there now) when I did it through the accounts pane, but it's left the user still showing in there, and at the logon screen.

  5. #4


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,754
    Thank Post
    221
    Thanked 2,627 Times in 1,937 Posts
    Rep Power
    779
    You're right, it will just delete the folder. I should have mentioned that you need to go back into Accounts and delete the user there or use the 'dscl' command in Terminal.

    Code:
    sudo dscl . -delete /Users/example
    Last edited by Arthur; 27th January 2011 at 01:43 PM.

  6. Thanks to Arthur from:

    soveryapt (27th January 2011)

  7. #5
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Cheers ..

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 3
    Last Post: 16th July 2010, 11:56 AM
  2. Replies: 15
    Last Post: 10th June 2010, 02:28 PM
  3. Replies: 2
    Last Post: 22nd February 2008, 04:03 PM
  4. Deleting User Profiles
    By Gordie in forum Scripts
    Replies: 4
    Last Post: 19th June 2006, 03:41 PM
  5. Replies: 10
    Last Post: 18th February 2006, 08:34 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •