Skip to main content

The Cisco anyconnect uninstaller ( from gui or running uninstaller from command line) has popup box that has two options, 'uninstall' or 'quit'. Is it possible via command line to have it choose 'uninstall'?

I have a simple script to uninstall, but in testing the script I get the popup box, so I'm assuming running the script via Casper it will not work due to the popup box.

The following worked for an older Cisco VPN client we used to use.

yes | /usr/local/bin/vpn_uninstaller

maybe your script would work with

uninstall | /path/to/command

@tcandela

sudo bash /opt/cisco/anyconnect/bin/vpn_uninstall.sh

worked for me using version 3.x


I currently have a script that does

cd /Applications/Cisco/Uninstall AnyConnect.app/Contents/MacOS
./Uninstall AnyConnect
--- but then see the popup box

I looked for the path that @jhalvorson provided but do not see it

but the path that @jhbush1973 provided I see.

currently i'm looking on a computer running AnyConnect version 2.5.1025

going to check other computers running 3.1


on some other computers, in addition to vpn_uninstall.sh in the /opt/cisco/anyconnect/bin directory there is also

anyconnect_uninstall.sh
dart_uninstall.sh
websecurity_uninstall.sh

do these also need to be run, or just the vpn_uninstall.sh ?


@tcandela That depends if those optional install components have been installed or not.


WithIn the /Applications folder, the Cisco folder contains an uninstaller that uninstalls everything except for DART (/applications/Cisco/....),

DART (has its own seperate uninstaller).

I'll try scripting the uninstaller from this location


sudo bash /opt/cisco/anyconnect/bin/anyconnect_uninstall.sh and then dart_uninstall.sh


how can i get cisco anyconnect uninstalled including the dart to perform a upgrade from self service?


What is your requirement to uninstall to perform an upgrade? Install on top and let the AnyConnect installer handle it.


Try this script.

#!/bin/sh

sudo /opt/cisco/anyconnect/bin/anyconnect_uninstall.sh

sudo sudo /opt/cisco/anyconnect/bin/amp_uninstall.sh

sudo /opt/cisco/anyconnect/bin/dart_uninstall.sh

sudo rm -rf /opt/cisco