Sorry total scripting newbie here.
I am trying to remove a user folder via a shell script in Casper Imaging that used to work great in DeployStudio:
#!/bin/sh
rm -R /Macintosh HD/Users/apple
exit 0
I placed this .sh file in a config in Casper Admin, kick it off and the user folder is still there on reboot. has to be something in my syntax?
For a frame of reference what I am trying to to:
We lend users laptops with a local account on them, and then when the person returns the laptop, we wipe that user folder so the next person that uses the laptop doesn't see any of the previous web browsing history, files etc.