Removing Pulse Secure and Junos Pulse VPN Silently

New Contributor II

We were using Pulse Secure (and its older version, Junos Pulse) VPN software in our environment but have since upgraded. In looking for a way to remove the old clients we ran across their uninstallers. Running those prompted the users to save the old settings and notified them when the uninstall was complete... We didn't want this! Found a way to make it silent!

If you dig into the uninstaller app, you can see that it's just calling a simple shell script that allows for arguments for ignoring all prompts and not saving the old config.

I'm posting those one liner scripts here for anyone else who might be looking to do the same!

Pulse Secure:


sudo sh /Library/Application Support/Pulse Secure/Pulse/ 0

Junos Pulse:


sudo /library/Application Support/Juniper Networks/Junos Pulse/ 0

Now just build the Jamf policy to call these scripts and update maintenance. Set it to recurring check in and point it at your smart groups for those applications and you're golden!



We're switching to GlobalProtect and I have to get rid of PS.

Minor tweaks, if sending this from Jamf, it'll run as root already, and you don't need the sudo in that case.
And since you're declaring sh in your shebang line, you can drop the sh.
I staged it like this.

/Library/Application Support/Pulse Secure/Pulse/ 0

Valued Contributor II

Don't forget that the Pulse uninstall script doesn't remove everything.... I don't remember everything but there were a few things left that were worth removing. That was with the 5.x track I have tested with 9.X


New Contributor

I am attempting to remove Pulse Secure 9.1 from Monterey 12.5.  Looking for a script to push via JAMF

New Contributor

Pulse secure comes with an uninstaller script - you can deploy a jamf policy to run the script and trigger the complete uninstall. 

Create new policy > under files and processes > in the "execute command" field put the following:

/Library/Application\ Support/Pulse\ Secure/Pulse/

That will run the uninstaller without any prompt/interaction on the user's end. 

We also had a pulse "config" file that we deployed to each computer so I added a command to remove that folder as well. the entire "execute command" field ended up being: 

/Library/Application\ Support/Pulse\ Secure/Pulse/ ; rm -rf /Users/Shared/Pulse (a space BEFORE and AFTER the ;)