Script to uninstall Cisco Secure Client (5.1.1.42)

Jose_Amaya
New Contributor III

I'm testing a script, but looking for a better suggestion that runs silently without any user invention. Running the uninstaller app isn't ideal. 

 

#!/bin/bash

# Path to the uninstallation apps
UNINSTALL_APP="/Applications/Cisco/Uninstall Cisco Secure Client.app"
DART_UNINSTALL_APP="/Applications/Cisco/Uninstall Cisco Secure Client - DART.app"

# Check if the uninstall app exists and execute it with sudo
if [ -e "$UNINSTALL_APP" ]; then
echo "Uninstalling Cisco Secure Client..."
sudo open "$UNINSTALL_APP"
else
echo "Cisco Secure Client uninstallation app not found."
fi

# Check if the DART uninstall app exists and execute it with sudo
if [ -e "$DART_UNINSTALL_APP" ]; then
echo "Uninstalling Cisco Secure Client - DART..."
sudo open "$DART_UNINSTALL_APP"
else
echo "Cisco Secure Client - DART uninstallation app not found."
fi

1 REPLY 1

obi-k
Valued Contributor III

#!/bin/bash

/opt/cisco/secureclient/bin/amp_uninstall.sh
/opt/cisco/secureclient/bin/dart_uninstall.sh
/opt/cisco/secureclient/bin/iseposture_uninstall.sh
/opt/cisco/secureclient/NVM/bin/nvm_uninstall.sh
/opt/cisco/secureclient/bin/umbrella_uninstall.sh
/opt/cisco/secureclient/bin/zta_uninstall.sh

### Uninstall Duo Desktop and Duo Device Health

/Applications/Duo\ Desktop.app/Contents/Library/LaunchServices/com.duosecurity.UninstallDuoDeviceHealth
/Applications/Duo\ Device\ Health.app/Contents/Library/LaunchServices/com.duosecurity.UninstallDuoDeviceHealth

### Uninstall ThousandEyes Agent
/Applications/Cisco/Cisco\ Secure\ Client\ -\ ThousandEyes\ Endpoint\ Agent.app/Contents/Resources/uninstall.sh

exit 0