Uninstall apps

JMaximusPrime
New Contributor II

Hello Jamf family,

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

Thanks,

JM

1 ACCEPTED SOLUTION

AJPinto
Honored Contributor III

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 solution in original post

4 REPLIES 4

AJPinto
Honored Contributor III

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
New Contributor II

Thank you

tahir
New Contributor II

#!/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
Contributor II