Fortinet black logo

User Guide

24.2.0

Uninstall the FortiMonitor Agent

Uninstalling the FortiMonitor Agent

Removing the FortiMonitor Agent from your server should use the same mechanism which was used to install but with the platform-specific differences. Each platform is covered below.

Redhat/Centos

To remove the fm-agent, run the following command:

yum remove fm-agent

Debian/Ubuntu

To remove the fm-agent, run the following command:

apt remove fm-agent && apt purge fm-agent

Linux/Unix Tar Installer

To remove the fm-agent, run the following command:

python /usr/bin/fm-agent/fm_agent.py --uninstall

Windows

If you originally used the MSI to install the Agent:

Go to Add Remove Programs and uninstall the agent

If you originally used PowerShell to install the Agent, use WMI through PowerShell to uninstall it.

To remove the Windows FortiMonitor Agent:

$product = get-wmiobject Win32_product | where-object {$_.Name -eq'FortiMonitor Agent' }

$product.uninstall()

Uninstalling the FortiMonitor Agent

Removing the FortiMonitor Agent from your server should use the same mechanism which was used to install but with the platform-specific differences. Each platform is covered below.

Redhat/Centos

To remove the fm-agent, run the following command:

yum remove fm-agent

Debian/Ubuntu

To remove the fm-agent, run the following command:

apt remove fm-agent && apt purge fm-agent

Linux/Unix Tar Installer

To remove the fm-agent, run the following command:

python /usr/bin/fm-agent/fm_agent.py --uninstall

Windows

If you originally used the MSI to install the Agent:

Go to Add Remove Programs and uninstall the agent

If you originally used PowerShell to install the Agent, use WMI through PowerShell to uninstall it.

To remove the Windows FortiMonitor Agent:

$product = get-wmiobject Win32_product | where-object {$_.Name -eq'FortiMonitor Agent' }

$product.uninstall()