Is there an option to NOT archive home dir when using deleteAccount verb?

donmontalvo
Esteemed Contributor III

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

--
https://donmontalvo.com
1 ACCEPTED SOLUTION

golbiga
Contributor III
Contributor III

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

Allen

View solution in original post

6 REPLIES 6

golbiga
Contributor III
Contributor III

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

Allen

donmontalvo
Esteemed Contributor III

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

--
https://donmontalvo.com

golbiga
Contributor III
Contributor III

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

nigelg
Contributor

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.

bpavlov
Honored Contributor

@nigelg What OS are you running that command in?

nigelg
Contributor

@bpavlov I am running it in Mavericks 10.9.5