Fortinet black logo

User Guide

Uninstall the FortiMonitor Agent

24.1.0
Copy Link
Copy Doc ID af1daa65-c273-11ec-9fd1-fa163e15d75b:496503
Download PDF

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()