Uninstallation

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

These steps can be run locally or through endpoint-management tooling.

Step 1: Remove agent integrations

Remove agent integrations before removing the daemon binary. If the binary has already been removed, delete the hook entries manually from each agent’s settings.

  1. macOS
  2. Windows
  3. Linux
aicodemetricsd uninstall-hooks
& "$env:ProgramFiles\AICodeMetrics\aicodemetricsd.exe" uninstall-hooks
aicodemetricsd uninstall-hooks

Step 2: Remove the daemon

  1. macOS
  2. Windows
  3. Linux

Stop and remove the LaunchAgent:

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

Stop and remove the auto-updater service:

sudo launchctl bootout system/com.getdx.aicodemetrics.updater
sudo rm /Library/LaunchDaemons/com.getdx.aicodemetrics.updater.plist

Note: Older installations have no updater service. If it was never installed, these commands report that the service could not be found, which is safe to ignore.

Remove the updater helper and socket:

sudo rm -rf /Library/Application\ Support/AI\ Code\ Metrics
sudo rm -f /var/run/com.getdx.aicodemetrics-updater.sock

Remove the binary and any backup left by an interrupted update:

sudo rm /usr/local/bin/aicodemetricsd
sudo rm -f /usr/local/bin/aicodemetricsd.bak

Remove the updater authorization group:

sudo dseditgroup -o delete _aicodemetricsupdate

Remove the package receipt:

sudo pkgutil --forget com.getdx.aicodemetrics
  1. Open Settings (press Windows + I).
  2. Go to AppsInstalled apps.
  3. Search for AI Code Insights.
  4. Click the three-dot menu next to the app.
  5. Select Uninstall and confirm.

Stop and remove the user service:

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

Stop and remove the auto-updater service:

sudo systemctl stop com.getdx.aicodemetrics.updater
sudo systemctl disable com.getdx.aicodemetrics.updater
sudo rm /etc/systemd/system/com.getdx.aicodemetrics.updater.service
sudo systemctl daemon-reload

Note: Older installations have no updater service. If it was never installed, these commands report that the unit does not exist, which is safe to ignore.

Remove the updater helper and socket:

sudo rm -rf /usr/local/lib/aicodemetrics
sudo rm -f /run/com.getdx.aicodemetrics-updater.sock

Remove the binary and any backup left by an interrupted update:

sudo rm /usr/local/bin/aicodemetricsd
sudo rm -f /usr/local/bin/aicodemetricsd.bak

Remove the updater authorization group:

sudo groupdel aicodemetrics-update

Step 3: Delete local data (optional)

This permanently removes stored configuration, attribution data, and logs from the machine.

  1. macOS
  2. Windows
  3. Linux
rm -rf ~/.aicodemetrics
rm -rf ~/Library/Logs/AI\ Code\ Metrics
sudo rm -rf /Library/Logs/AI\ Code\ Metrics
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\aicodemetrics"
rm -rf ~/.aicodemetrics
sudo rm -rf /var/log/aicodemetrics