Hi all,
My goal is to delete any files or folders on the desktop when the user logs out.
I'm using this command in bash script: rm -Rf /Users/<currentuser>/Desktop/*
The sript is set to run at logout.
Unfortunately it does not work.
When I try the command in the users Terminal it prompts "sure you want to delete all X files in /Users/<currentuser>/Desktop [yn]?"
According to this post under Jamf Pro the script should work if the script is set to run at 'startup', but this option is not available in Jamf School.
Is there any way to get it to work?
