Skip to main content
Solved

Uninstall apps

  • December 4, 2024
  • 4 replies
  • 39 views

JMaximusPrime
Forum|alt.badge.img+3

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. 

4 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Answer
  • December 4, 2024

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+3
  • Author
  • New Contributor
  • December 4, 2024

Thank you


Forum|alt.badge.img+5
  • Contributor
  • December 11, 2024

#!/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+9
  • Jamf Heroes
  • December 12, 2024