--- title: Uninstall an agent using a maintenance token description: Uninstall an agent from a Windows device using a maintenance token. Administrators require maintenance tokens to ensure that unauthorized employees can't perform an uninstall. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/agent-client-collector/uninstall-agent-maintenance-token.html release: australia product: Agent Client Collector classification: agent-client-collector topic_type: task last_updated: "2026-08-27" reading_time_minutes: 1 breadcrumb: [ACC deployment - servers, Configuring Agent Client Collector, Agent Client Collector, IT Operations Management] --- # Uninstall an agent using a maintenance token Uninstall an agent from a Windows device using a maintenance token. Administrators require maintenance tokens to ensure that unauthorized employees can't perform an uninstall. ## Before you begin Enable requiring a maintenance token for uninstalls, as described in [Require a maintenance token for Windows uninstalls](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/agent-client-collector/require-maintenance-token-uninstall.md). Create a maintenance token to be used when uninstalling an agent, as described in [Create a maintenance token](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/agent-client-collector/create-maintenance-token.md). Role required: sn\_agent.token\_admin ## Procedure 1. Navigate to the Control Panel on your Windows machine and select the Agent Client Collector application to uninstall. After the uninstall process begins, the **Uninstall Token Required** dialog box opens. \[Omitted image "uninstall-token-request.png"\] Alt text: Dialog box to enter maintenance token for uninstalling an agent 2. Retrieve the maintenance token that you created. 1. Navigate to **All** > **Agent Client Collector** > **Deployment** > **Agent Maintenance Token**. 2. Select the relevant maintenance token. 3. Select **View Maintenance Token** in the Related Links section. 4. Select the **Copy Token** \(\[Omitted image "copy-token-icon.png"\]\) icon to copy the maintenance token value. 3. Paste the maintenance token in the **Maintenance Token** field. 4. Select **OK**. **Note:** Alternatively, you can enable requiring a maintenance token by using the following single line command: ``` msiexec /quiet /x UNINSTALL_TOKEN= ``` The agent is uninstalled from your Windows machine. If you provide an invalid maintenance token, uninstall is blocked. For more information, check the uninstall logs at `\AppData\Local\Temp\ACC_Logs`. **Parent Topic:**[Deploying Agent Client Collector on servers](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/agent-client-collector/acc-server-deployment.md)