Skip to main content
Question

Mac Apps - Remove Old Versions?

  • April 7, 2026
  • 3 replies
  • 38 views

Apologies if this is covered elsewhere and I’ve missed it!

I’ve noticed that with the latest version (15.1.1) of Keynote, Numbers and Pages, the new version installs, and the old version remains. Using my Mac as an example, I currently have Numbers 15.1.1 and 14.6.2 installed. 

Trying to sort out a way to remove old versions from our Macs using Jamf Pro? I’ve tried a few scripts that claim to work even on Apple apps,  but haven’t had any luck. 

3 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • April 8, 2026

Just use a script, you don't have to get fancy. You can just use sudo rm -rf /Applications/{app name}. I don't recommend doing this with most apps, but for iWork it's fine. Once you have the script shove it in to Jamf and deploy it in a policy, or you could make it a string and deploy it as a command in a policy. 


Forum|alt.badge.img+3

While I’ve not dealt with exactly what you’re working on (current environment is only iPhones which is a real bummer), I have had to hunt vulnerabilities with a really aggressive timeline and the most efficient way I’ve found to do it is with a policy → Files & Processes payload.

  1. Create a smart group for scoping that have what you need to remove
  2. Create a new policy → provide a name, set frequency and trigger
    1. I named mine Remove ‘/path/to/file/or/app/.app
    2. I set the frequenty usually at check-in
  3. Scroll down to files & process payload and click configure. 
    1. in the Execute Command text box, /bin/rm -rf /Applications/Pages.app
  4. Change scope to one or two test Macs that have on them what you need removed
  5. wait for the policy to run, if it runs and succeeds, adjust scope to the smart group you created in step 1. 

I’ve also done it with a script using the script paload with the $4 as the path for the item to delete. If you want to get fancier for logging and such, it might be helpful. 


woaikonglong
Forum|alt.badge.img+9
  • Jamf Heroes
  • April 8, 2026

Thank you for posting this, we hadn’t even noticed! embara😳