Skip to main content
Solved

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

  • December 29, 2011
  • 6 replies
  • 17 views

donmontalvo
Forum|alt.badge.img+36

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

Best answer by golbiga

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

Allen

6 replies

golbiga
Forum|alt.badge.img+21
  • Employee
  • Answer
  • December 30, 2011

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

Allen


donmontalvo
Forum|alt.badge.img+36
  • Author
  • Hall of Fame
  • January 3, 2012

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


golbiga
Forum|alt.badge.img+21
  • Employee
  • January 3, 2012

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


Forum|alt.badge.img+6
  • Contributor
  • October 15, 2015

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
Forum|alt.badge.img+18
  • Esteemed Contributor
  • October 15, 2015

@nigelg What OS are you running that command in?


Forum|alt.badge.img+6
  • Contributor
  • October 16, 2015

@bpavlov I am running it in Mavericks 10.9.5