Skip to content

Instantly share code, notes, and snippets.

@dongri
Last active November 8, 2024 22:31
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.'
@dongri
Copy link
Author

dongri commented Sep 8, 2021

I'm glad it helped.

@dmorgangg
Copy link

Do you know what parameter to add if an uninstall password is required?

@dongri
Copy link
Author

dongri commented Nov 5, 2021

@dmorgangg You'll have to ask your system administrator for the password.

@gandalf239
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.

@dbrum
Copy link

dbrum commented Apr 6, 2023

how can this be used without being prompted for the sudo password? Netskope will just be pushed down after a few hours for example and want to schedule this script to be run say every hour in case it shows up again.

@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!

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