Posted on 12-29-2011 03:14 PM
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
Solved! Go to Solution.
Posted on 12-29-2011 06:32 PM
sudo jamf deleteAccount -username jdoe -deleteHomeDirectory should do the trick.
Allen
Posted on 12-29-2011 06:32 PM
sudo jamf deleteAccount -username jdoe -deleteHomeDirectory should do the trick.
Allen
Posted on 01-03-2012 04:04 AM
Thanks Allen! I wonder if there is a hidden list somewhere of all these options?
Posted on 01-03-2012 05:40 AM
No problem! jamf help deleteAccount gave me all the options.
Posted on 10-15-2015 10:01 AM
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.
Posted on 10-15-2015 10:04 AM
@nigelg What OS are you running that command in?
Posted on 10-16-2015 01:34 AM
@bpavlov I am running it in Mavericks 10.9.5