Uninstallation of AnyConnect on MacOS
Procedure
Attention: The following uninstallation steps require administration rights. Please follow the instructions exactly in order not to cause any damage to the operating system.
Tested under MacOS Version: 13.0.1
Open the terminal and then enter the following line by line:
sudo -s rm -rf /Library/Application\ Support/Cisco/AnyConnect\ Secure\ Mobility\ Client rm -rf /System/Volumes/Data/Library/Application\ Support/Cisco rm -rf /System/Volumes/Data/Applications/Cisco/ rm -rf /System/Volumes/Data/opt/cisco/anyconnect rm -rf /opt/cisco pkgutil --forget com.cisco.pkg.anyconnect.vpn
Now reboot your system once!
After the reboot, install AnyConnect as usual by executing the installation file. At the end of the installation, the installation process will probably fail!
Open the terminal again and enter the following line by line:
sudo -s sh /opt/cisco/anyconnect/bin/vpn_uninstall.sh
Now reboot your system again!
After the reboot, install AnyConnect as usual by executing the installation file. Now the installation process should complete successfully.