-4

I have a MacBook Air (with OS X El Capitan Version 10.11.5) that is shared by other users.

I have admin privileges.

I want to delete my "User", however, I cannot do such within "System Preference > Users & Groups", because I can delete "Other Users" but not myself as "Current User".

How can I delete my "User" without affecting "Other Users"?

jeff00seattle
  • 1,291
  • 5
  • 17
  • 31

2 Answers2

2

I am not sure about my answer but I think you cannot delete user which is logged in. So you should have logged in by another Admin account and remove yours. And If you have not access to other Admin accounts, create another admin user and delete your user when you logged in at new account

Fa.Shapouri
  • 988
  • 2
  • 12
  • 30
  • 1
    Thanks for the reply. However, to create a new admin account to delete my account, then I am now left with another account to delete. – jeff00seattle Oct 28 '16 at 16:49
  • Yes, I could ask the admin users to delete my User, but it seems to me that I should be able to delete myself. Possibly through some special boot process? – jeff00seattle Oct 28 '16 at 16:54
  • When you are using an account, some process is running on that; When you try to remove and user, you try to remove threads of that user which delete action would be running at it! It seems the delete action needs to an account to run it. – Fa.Shapouri Oct 28 '16 at 17:47
  • Check this link https://support.apple.com/en-us/HT203513, at #2 apple says you need to log in by another account. Apple could add a feature to remove current account if another exist at reset. :) – Fa.Shapouri Oct 28 '16 at 17:51
0

open Terminal and type the following commands, or create .sh file and add them there:

echo "YourPassword" | sudo -S rm -R /Users/YourUser

sudo rm /private/var/db/.AppleSetupDone

sudo dscl . -delete /Groups/YourUser

sudo dscl . -delete /Users/YourUser

Where YourUser could be any user you have already logged in, and "Your Password" (with quotes) is the same password you use to log in your mac.

aarw76
  • 77
  • 1
  • 4