Skip to main content
Solved

Uninstall apps

  • Dec 4, 2024 8:14 PM UTC
  • 4 replies
  • 194 views

JMaximusPrime
Forum|alt.badge.img+4

Hello Jamf family,

Is there a script that can uninstall apps like in Intune?

Thanks,

JM

Best answer by AJPinto

Jamf themselves do not make and scripts or tools to uninstall applications, but you can upload custom scripts and deploy them with policies simply enough. If the script is a one liner you can deploy it directly with a policy with the file and process payload. 

View original

4 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Answer
  • Dec 4, 2024 8:30 PM UTC

Jamf themselves do not make and scripts or tools to uninstall applications, but you can upload custom scripts and deploy them with policies simply enough. If the script is a one liner you can deploy it directly with a policy with the file and process payload. 


JMaximusPrime
Forum|alt.badge.img+4
  • Author
  • New Contributor
  • Dec 4, 2024 8:35 PM UTC

Thank you


Forum|alt.badge.img+5
  • Contributor
  • Dec 11, 2024 6:04 PM UTC

#!/bin/bash

# Uninstall Firefox
if [ -d "/Applications/Firefox.app" ]; then
echo "Firefox found. Removing..."
sudo rm -rf "/Applications/Firefox.app"
echo "Firefox has been removed."
else
echo "Firefox is not installed."
fi


BookMac
Forum|alt.badge.img+16
  • Jamf Heroes
  • Dec 12, 2024 11:21 AM UTC