Uninstall Cisco AnyConnect VPN on MAC
This all began with me trying to upgrade my anyconnect vpn on my Macbook Pro. The issue was that the earlier version that was installed, I had deleted its entry from Launchpad thinking that it will uninstall on Mac while doing so.
So, I wasn’t able to upgrade to newer version without uninstalling the existing one first and neither MAC or nor anyconnect VPN installer offered any option to uninstall by default.
I looked around on Internet and found few ways to do it and they worked. Sharing here them so that others can benefit as well:
This is the way to uninstall any app, in general, on Mac OS. Find it uninstaller and launch it.
- Go to Finder -> Applications
- Look for Cisco Folder and Open it
- You should find its uninstaller by name ‘Uninstall Anyconnect’. Launch it and Follow the further instructions to get the work done smoothly.
- If not, please proceed to next sections.
The Method I tried
- Open Terminal App and change directory to Cisco Anyconnect bin:
2. List the files there using ‘ls’ command and you should find “vpn_uninstall.sh” script there.
3. Launch this script using following command (please see you need to be sudo to run this script)
If the command is successful, you should see the message “Successfully removed Cisco AnyConnect Secure Mobility Client from the system. “
One More Method (the developer way)
Open Terminal and execute following command:
sudo pkgutil — forget com.cisco.pkg.anyconnect.vpn
Last Method (when nothing works, do manual removal of files)
Please refer to following link, it lists different rm commands based on different anyconnect versions to manually do the job:
Thanks. Hope it helps.