Skip to main content
Solved

Cisco anyconnect command line uninstall script?


Forum|alt.badge.img+20

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.

Best answer by jhbush

@tcandela

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

worked for me using version 3.x

View original
Did this topic help you find an answer to your question?

10 replies

Forum|alt.badge.img+26
  • Honored Contributor
  • 457 replies
  • April 15, 2015

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

jhbush
Forum|alt.badge.img+26
  • Esteemed Contributor
  • 539 replies
  • Answer
  • April 15, 2015

@tcandela

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

worked for me using version 3.x


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • April 15, 2015

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


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • April 15, 2015

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 ?


RobertHammen
Forum|alt.badge.img+28
  • Esteemed Contributor
  • 1027 replies
  • April 15, 2015

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


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • April 18, 2015

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


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • April 19, 2015

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


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • November 19, 2019

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


iJake
Forum|alt.badge.img+21
  • Contributor
  • 279 replies
  • November 20, 2019

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


Romans15
Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • April 25, 2024

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings