How to remove agent using AgentCleanupTool?
The AgentCleanupTool is used to completely remove the agent from Windows and Mac machines. Unlike uninstalling from the Control Panel or deleting from Applications folder, this tool ensures all files, folders, services, and scheduled tasks related to the agent are fully removed.
- Your server has been shut down or decommissioned, and you still need to remove agents from machines.
- You already tried to uninstall the agent from the Control Panel or System Preferences, but some parts were left behind.
- The agent is stuck, broken, or you cannot manage it from the console anymore.
Important
You only need to generate these files once per server. The AgentCleanupToolClient.exe generated from your server can be used to clean up all computers managed under that server — just copy and run it on each machine within the 48-hour window. If the files expire before you finish, run AgentCleanupTool.exe again on the server to get a fresh set.
Important
- 48 hour expiry: The generated files (AgentCleanupToolClient.exe and UEMS_MacAgent_UninstallInfo.plist) are valid for 48 hours only. If they expire, return to Step 1 and regenerate them.
- Do not rename files: The cleanup tools validate file names internally. Renaming any file will cause the cleanup to fail.
- Do not run from the agent directory: Never execute AgentCleanupToolClient.exe from inside the agent installation folder (e.g., C:\Program Files (x86)\ManageEngineUEMS-Agent\).
- Server-side removal: The cleanup tool removes only the agent from the endpoint. To also remove the computer entry from the server, navigate to Agent > Computers, select the computers, and click Remove Computers.
Keywords: Uninstall Agents, Endpoint Central Agent Uninstallation, Agent Uninstallation.