---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Uninstall Agent Client Collector from a Linux system using a single-line command

# Uninstall Agent Client Collector from a Linux system using a single-line command {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Uninstall the Agent Client Collector from a Linux machine by running an efficient single-line command. If the script is not connected to the instance, you might have to uninstall Agent Client Collector manually.

## Before you begin

* The uninstall procedure is the same for both MID Server and MID-less deployments.
* Role required: agent_client_collector_admin
{#acc-uninstall-linux__ul_kt1_ns5_zfc}

## Procedure

Uninstall Agent Client Collector by running the following command in a command window where `<instance url>` is the URL of the ServiceNow instance.  
`bash -c "$(curl -L https://<instance url>/api/sn_agent/agents/install_agent)" -s "--remove"` .  
Note:  
Uninstalling the Agent Client Collector removes the acc.yml file and its directory from your machine.

