Fortinet white logo
Fortinet white logo

User Guide

26.1.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:

  1. Download the uninstall script by running:

    curl -O https://repo.fortimonitor.com/install/linux/uninstall_agent_zip.py

  2. Run the following script as root:

    python3 uninstall_agent_zip.py

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

MacOS Endpoint Agent

To uninstall the agent, open a terminal window then run the following command:

sudo bash /usr/local/fortimonitor/uninstall.sh

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:

  1. Download the uninstall script by running:

    curl -O https://repo.fortimonitor.com/install/linux/uninstall_agent_zip.py

  2. Run the following script as root:

    python3 uninstall_agent_zip.py

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

MacOS Endpoint Agent

To uninstall the agent, open a terminal window then run the following command:

sudo bash /usr/local/fortimonitor/uninstall.sh