> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Remove Monitoring Agents from Cloud Manager

**Important: Legacy Monitoring Agent has been removed**

This Agent has been updated from your self-managed legacy Monitoring Agent to the [MongoDB Agent.](https://www.mongodb.com/docs/cloud-manager/tutorial/nav/mongodb-agent.md#std-label-mongodb-agent)

## View Active Agents

To view your active Monitoring Agents:

1. In MongoDB Cloud Manager, go to the Agents page for your project.

   If it's not already displayed, select the organization that contains your desired project from the  Organizations menu in the navigation bar.

   If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

   In the sidebar, click Agents under the Database heading.

   The [Agents](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fdeployment%2Fagents%2Fall) page displays.

2. View all agents.

   Click All Agents.

Active agents are those that have pinged Cloud Manager in the last 5 minutes.

## Remove from Cloud Manager

To remove a Monitoring Agent from Cloud Manager, [stop the agent](https://www.mongodb.com/docs/cloud-manager/tutorial/start-or-stop-monitoring-agent.md#std-label-stop-monitoring-agent) and then wait 5 minutes.

When an agent fails to ping Cloud Manager for 5 minutes, Cloud Manager views the agent as inactive and distributes the agent's assignments to other agents (if available).

**Note:**

The All Agents page  displays an inactive agent for 24 hours before Cloud Manager removes it from the page.

## Delete from the Server

To delete the Monitoring Agent **from a Linux or OSX server**, [stop the agent](https://www.mongodb.com/docs/cloud-manager/tutorial/start-or-stop-monitoring-agent.md#std-label-stop-monitoring-agent) and then remove the `mongodb-mms-monitoring-agent` file from the `/usr/bin` directory. If you installed the agent using a `tar.gz` file, the agent will be in the directory you chose during installation.

To delete the Monitoring Agent **from a Windows server**, [stop the agent](https://www.mongodb.com/docs/cloud-manager/tutorial/start-or-stop-monitoring-agent.md#std-label-stop-monitoring-agent-windows) and then use the Windows program uninstaller to remove the `MongoDB Monitoring Agent` program.
