Hi,
I'm new to scripting and I'm trying to delete all files and folders within the Desktop folder and the Downloads folder without actually deleting the Desktop folder and Download folder themselves. I've tried using rm -rf /users/username/desktop/* , but it prompts for confirmation and then doesn't execute when trying to deploy through Jamf. Does anyone know how to do this? I want the trigger for the policy to be "at logout".
Solved
Delete All Files in Desktop and Downloads
Best answer by AHSitguy
Using @PaulHazelden's terminal command with a trigger of "Startup" works. I couldn't get it to work at loginlogout though.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
