Uninstall VPN (MacOS)

Cisco Anyconnect Manual uninstall Mac os

Here's the procedure for manually uninstalling the AnyConnect client from a Mac OS X system.

As root, run the following shell script from the Terminal:

sudo /opt/cisco/vpn/bin/vpn_uninstall.sh

You will be prompted for your password. Once you enter it, just follow the steps

If you still having trouble and/or the new Cisco Anyconnect installation complains that you have a version installed, follow these steps:

Enter these commands to clean out the old Cisco VPN kernel extension and reboot the system. (run the "sudo -s" command by it's self)

sudo -s




rm -rf /System/Library/StartupItems/CiscoVPN

rm -rf /Library/StartupItems/CiscoVPN

rm -rf /System/Library/Extensions/CiscoVPN.kext

rm -rf /Library/Extensions/CiscoVPN.kext

rm -rf /Library/Receipts/vpnclient-kext.pkg

rm -rf /Library/Receipts/vpnclient-startup.pkg

reboot

Enter these commands if you no longer need the old Cisco VPN Client. (run the "sudo -s" command by it's self)

sudo -s




rm -rf /Library/Frameworks/cisco-vpnclient.framework

rm -rf /Library/Extensions/tun.kext

rm -rf /Library/Extensions/tap.kext

rm -rf /private/opt/cisco-vpnclient

rm -rf /Applications/VPNClient.app

rm -rf /Library/Receipts/vpnclient-api.pkg

rm -rf /Library/Receipts/vpnclient-bin.pkg

rm -rf /Library/Receipts/vpnclient-gui.pkg

rm -rf /Library/Receipts/vpnclient-profiles.pkg

rm -rf ~/Library/Preferences/com.cisco.VPNClient.plist

exit

Finally this.

sudo pkgutil --forget com.cisco.pkg.anyconnect.vpn