Force Uninstall FortiClient via Terminal [no-password]
1 min readJan 26, 2022
Have you ever tried to uninstall and having a “stuck” moment where you need to fill a password that you don’t even know? (In this case is uninstalling FortiClient) This medium will be going 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!
ps. if you still have the same issue, let’s figure it out together in tweet!