Force Uninstall Forticlient via Terminal
Have you ever try to uninstall and having a “stuck” moment where you need to fill a password that you don’t even know? This medium will be gonna quick because here’s the solution you can try by executing these commands below in your terminal!
pkill FortiClientAgent
launchctl unload /Library/LaunchDaemons/com.fortinet*
rm -Rfv /Applications/FortiClient.app
rm -Rfv /Applications/FortiClientUninstaller.app
rm -Rfv /Library/Application\\ Support/Fortinet
rm -Rfv /Library/Internet\\ Plug-Ins/FortiClient_SSLVPN_Plugin.bundle
rm -Rfv '/Library/LaunchDaemons/com.fortinet.forticlient.vpn.plist'
rm -Rfv '/Library/LaunchDaemons/com.fortinet.forticlient.wf.plist'
rm -Rfv '/Library/LaunchDaemons/com.fortinet.forticlient.fmon.plist'
rm -Rfv '/Library/LaunchDaemons/com.fortinet.forticlient.epctrl.plist'
rm -Rfv '/Library/LaunchDaemons/com.fortinet.forticlient.appfw.plist'
rm -Rfv '/Library/LaunchDaemons/com.fortinet.forticlient.fssoagent_launchdaemon.plist'
localAccounts=$(dscl . list /Users UniqueID | awk '$2 > 500 { print $1 }')
for user in $localAccounts ;
do
rm -Rfv /Users/"$user"/Library/Application\\ Support/Fortinet/
done
After you executed those commands, you can freely delete the application or install your new Forticlient if you want to replace it. Have a great day fellas!
ps. if you still have the same issue, let’s figure it out together in tweet!