Skip to main content

So we have to clean up some legacy hidden home directories. The deleteAccount verb works fine, but it archives the home directories for these hidden accounts /Users/Deleted Users which we don't want.



sudo jamf deleteAccount -username jdoe


I know some of the jamf binary functions/options are hidden (geez, really wish JAMF would docment the whole enchalada), so I'm hoping there is a way to run this command WITHOUT archiving the deleted user's home directory.



Happy holidays!



Don

sudo jamf deleteAccount -username jdoe -deleteHomeDirectory should do the trick.



Allen


Thanks Allen! I wonder if there is a hidden list somewhere of all these options?


No problem! jamf help deleteAccount gave me all the options.


Trying this command today and its not actually deleting the directories.



Using 9.73



bash-3.2# jamf deleteAccount -username nc269 -deleteHomeDirectory
Deleting user nc269...
Deleting home directory for nc269...


But the directory is still there



bash-3.2# ls /Users/ | grep nc269
nc269


I have checked and all the files are still inside the directory.


@nigelg What OS are you running that command in?


@bpavlov I am running it in Mavericks 10.9.5