Skip to main content
Question

Best method to remove/delete multiple files using JSS


Forum|alt.badge.img+2
  • New Contributor
  • 1 reply

Hi,

Apologies if this has already been asked and answered. If so can you please link the discussion for me.

I'm new to Casper/JAMF and have been trying to finding out a way to remove multiple outdated Cisco VPN profiles from all of our Macs using Policies. I know that I can create a Policy that will "Delete file if found" in the Files and Processes configuration, but is there a way to delete multiple files using only 1 configured policy?

Thanks!

2 replies

davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • November 4, 2015

You can use the "execute command" section with rm /path/to/file1 && rm /path/to/file2... etc.

You'll need to scope it to the specific computers you need, to avoid deleting the files on the wrong ones.


Forum|alt.badge.img+2
  • Author
  • New Contributor
  • 1 reply
  • November 5, 2015

Thanks for the quick reply david. Unfortunately I'm struggling a bit to configure the execute command section. I even tried just doing 1 file but still can't get the file to delete. I've scoped it to a smart group that I have the computer added to. Thoughts what I might be doing wrong?

The file is located in 10.10.5/opt/cisco/anyconnect/profile


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings