Skip to content

Instantly share code, notes, and snippets.

@dongri
Last active March 17, 2025 20:09
Show Gist options
  • Save dongri/0735e9a852093cf83212092e3fe40983 to your computer and use it in GitHub Desktop.
Save dongri/0735e9a852093cf83212092e3fe40983 to your computer and use it in GitHub Desktop.
uninstall netskope
#!/bin/sh
sudo ps aux | grep Netskope | grep -v grep | awk '{ print "kill -9", $2 }' | sudo sh
echo '[✓] Kill Netskope Process'
sudo rm -rf /Applications/Remove\ Netskope\ Client.app
echo '[✓] Removed Remove Netskope Client.app'
sudo rm -rf /Library/Application\ Support/Netskope
echo '[✓] Removed Agent of Netskope Client.app'
echo 'Successfully uninstalled.'
@gandalf239
Copy link

gandalf239 commented Apr 7, 2023 via email

@joaovitorleffa
Copy link

Thanks for this awesome script! Has truly helped me when I've been unable to blow away Netskope when needed. Have made a couple of changes which allows the software to be removed regardless of whether one has the uninstall password or not:

  1. Changed the line: sudo rm -rf /Library/Application\ Support/Netskope/ to include an asterisk ( * ) at the end.
  2. Added: echo "Y" | sudo rm -rf /Applications/Netskope\ Client.app at the end of the script (this won't run until the related services are killed).
    This totally blows away Netskope allowing me to reinstall clean.

This works for me, thanks!

@yiwenleo
Copy link

yiwenleo commented Nov 20, 2024

Fuck You Netskope.webm
I have a better solution: disable it temporarily instead of uninstalling it. change the extension to .sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment