---
title: "Uninstallation"
canonical_url: "https://docs.getdx.com/ai-code-insights/uninstallation/"
md_url: "https://docs.getdx.com/ai-code-insights/uninstallation.md"
last_updated: "2026-05-08"
---

# Uninstallation
Complete steps for removing the AI Code Insights daemon, hooks, and local data from developer machines.

## macOS

> **Note**: These steps can be run by a developer on their own machine, or executed remotely via an MDM tool (Jamf, Kandji, Intune) using a remote shell or script-execution policy.

Remove hooks from agent configurations first:

```bash
aicodemetricsd uninstall-hooks
```

> **Note**: Run `aicodemetricsd uninstall-hooks` before removing the binary. If the binary has already been removed, remove hook entries manually from each agent's settings.

Stop and remove the service:

```bash
launchctl unload ~/Library/LaunchAgents/com.getdx.aicodemetrics.plist
rm ~/Library/LaunchAgents/com.getdx.aicodemetrics.plist
```

Remove the binary:

```bash
sudo rm /usr/local/bin/aicodemetricsd
```

Tell macOS the package is no longer installed:

```bash
sudo pkgutil --forget com.getdx.aicodemetrics
```

Optionally, delete local data and logs:

```bash
rm -rf ~/.aicodemetrics
rm -rf ~/Library/Logs/AI\ Code\ Metrics
```

The installer bundles Watchman at `/usr/local/bin/watchman` along with shared libraries in `/usr/local/lib/`. These are not removed during uninstallation because the same paths may be used by Watchman installations from Homebrew or other sources. If the bundled Watchman is the only one on the system, you can remove `/usr/local/bin/watchman` and `/usr/local/var/run/watchman` manually.

## Windows

Remove hooks from agent configurations first:

```powershell
aicodemetricsd uninstall-hooks
```

> **Note**: Run `aicodemetricsd uninstall-hooks` before uninstalling. If the binary has already been removed, remove hook entries manually from each agent's settings.

Uninstall the daemon:

1. Open **Settings** (press `Windows` + `I`).
1. Go to **Apps** -> **Installed apps**.
1. Search for **AI Code Insights**.
1. Click the three-dot menu next to the app.
1. Select **Uninstall** and confirm.

Optionally, delete local data:

```powershell
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\aicodemetrics"
```

## Linux

Remove hooks from agent configurations first:

```bash
aicodemetricsd uninstall-hooks
```

> **Note**: Run `aicodemetricsd uninstall-hooks` before removing the binary. If the binary has already been removed, remove hook entries manually from each agent's settings.

Stop and remove the service:

```bash
systemctl --user stop com.getdx.aicodemetrics
systemctl --user disable com.getdx.aicodemetrics
rm ~/.config/systemd/user/com.getdx.aicodemetrics.service
systemctl --user daemon-reload
```

Remove the binary:

```bash
sudo rm /usr/local/bin/aicodemetricsd
```

Optionally, delete local data:

```bash
rm -rf ~/.aicodemetrics
```

The installer bundles Watchman at `/usr/local/bin/watchman` (x86_64 only). This is not removed during uninstallation because the same path may be used by other Watchman installations. If the bundled Watchman is the only one on the system, you can remove it manually along with `/usr/local/var/run/watchman`.
---

## Sitemap

[Overview of all docs pages](/llms.txt)
