How to uninstall Clavda from Linux, Windows, macOS and ESP32
Remove Clavda completely: stop the agent or uninstall the desktop app, delete its files, erase an ESP32's stored identity, and delete the device so its credentials stop working.
Updated 3 min read
Removing Clavda takes two steps: remove the agent or the Clavda Desktop app from the machine, then delete the device record so its credentials stop working everywhere.
Linux
With one command
The Uninstall tab in the device's Generate Setup Commands panel gives a command that stops the service, removes the unit and deletes the install directory. It uses the same root or non-root selector as the installer:
curl -fsSL "https://<api-host>/s/uninstall?m=root" | sudo sh
curl -fsSL "https://<api-host>/s/uninstall?m=user" | sh
The command carries no credentials and never expires, and it is safe to run twice: on a machine that is already clean, it simply finishes. It removes /opt/clavda, ~/clavda, and a custom CLAVDA_INSTALL_DIR if you set the same variable when you run it.
By hand
If the machine cannot reach the Clavda API, or you want to see exactly what is removed, do it by hand. For a system-wide install:
sudo systemctl stop clavda.service
sudo systemctl disable clavda.service
sudo rm -f /etc/systemd/system/clavda.service
sudo systemctl daemon-reload
sudo systemctl reset-failed
sudo rm -rf /opt/clavda
For a non-root install:
systemctl --user stop clavda.service
systemctl --user disable clavda.service
rm -f ~/.config/systemd/user/clavda.service
systemctl --user daemon-reload
rm -rf ~/clavda
# only if lingering was enabled for the install
sudo loginctl disable-linger $USER
Confirm nothing is left
systemctl status clavda.service # should report "could not be found"
pgrep -af clavda-client # should print nothing
ls /opt/clavda ~/clavda 2>/dev/null # should print nothing
Clavda Desktop on Ubuntu
Quit the app from its tray icon, then remove the package and its data folder, which holds the device's config and keys:
sudo apt remove clavda-desktop
rm -rf ~/.local/share/com.codegen.clavda-desktop-app
For the AppImage, delete the .AppImage file and the same data folder. If you turned on Start when you sign in, turn it off first, or delete its entry in ~/.config/autostart.
Windows
Turn off Setup → Start when you sign in if you turned it on, and quit Clavda Desktop from its tray icon. Then uninstall it from Settings → Apps → Installed apps, and delete its data folder, which holds the device's config and keys:
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\com.codegen.clavda-desktop-app"
An MSI install is removed the same way, or by the tool that deployed it.
macOS
Quit Clavda Desktop from its menu bar icon, and turn off Setup → Start when you sign in if you turned it on. Then drag the app from Applications to the Bin, and delete its data folder, which holds the device's config and keys:
rm -rf ~/Library/Application\ Support/com.codegen.clavda-desktop-app
ESP32
The board keeps its Clavda identity in NVS, so flashing other firmware does not remove it. Erase the whole flash: in the Arduino IDE, turn on Tools → Erase All Flash Before Sketch Upload and upload. With PlatformIO:
pio run -t erase
With ESP-IDF:
idf.py -p PORT erase-flash
Delete the device record
Removing files stops the device connecting, but the device and its credentials still exist in your account. Open Devices, use the row menu and choose Delete. That invalidates the tokens in any copy of the config file that may still be around, and frees the device's slot on your plan.
Rotate instead of remove
To keep the device but replace its credentials, press Generate Setup Commands again. It mints fresh tokens, and the old config stops working once the new one is installed.
What Clavda installs
The agent is a single self-contained executable. It installs no packages, creates no users, writes nothing under /etc except its own service unit, and leaves nothing in your home directory beyond the folder you chose. A complete system-wide install on Linux is:
| Path | What it is |
|---|---|
/opt/clavda/clavda-client | The agent |
/opt/clavda/.env | Its configuration and credentials, mode 600 |
/etc/systemd/system/clavda.service | The service unit |
A non-root install uses ~/clavda and ~/.config/systemd/user/clavda.service instead. Removing those paths removes Clavda from the machine entirely.