> For the complete documentation index, see [llms.txt](https://docs.checkcle.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.checkcle.io/getting-started/uninstalling/3.-uninstall-regional-agent.md).

# 3. Uninstall Regional Agent

**Guide for `regional-check-agent`**, with explanations and extra cleanup options:

***

### &#x20;Stop and Disable the Service

```bash
sudo systemctl stop regional-check-agent
sudo systemctl disable regional-check-agent
```

* `stop` → halts the running service.
* `disable` → prevents it from auto-starting at boot.

***

### &#x20;Uninstall Options

1. **Remove Package (keep configs & logs)**

   ```bash
   sudo dpkg -r regional-check-agent
   ```

   * Uninstalls the binaries.
   * Keeps configuration files (often in `/etc/`regional-check-agent.service`/`) and logs.
   * Use this if you want to reinstall later without losing settings.
2. **Purge Package (remove everything)**

   ```bash
   sudo dpkg --purge regional-check-agent 
   ```

   * Removes binaries **and** configuration files.
   * Leaves nothing behind from the `.deb` package.
   * Best choice for a clean uninstall.

***

### &#x20;Verify Removal

```bash
dpkg -l | grep regional-check-agent
```

* If nothing shows up → package is gone.
* If you see `rc` → it was removed but config files are still present.

***

### &#x20;Optional: Clean Residual Data

If the agent stored runtime data or logs outside the package (common locations):

```bash
sudo rm -rf /var/lib/regional-check-agent
sudo rm -rf /var/log/regional-check-agent
```

***

&#x20;After this, `distributed-regional-check-agent` will be fully removed.
