How to Uninstall OpenClaw
This guide covers how to fully uninstall OpenClaw from your system, including removing the package, config files, data, services, and Docker containers. Follow the steps for your platform.
Before You Uninstall OpenClaw
Before removing OpenClaw, consider backing up your data first. Once deleted, your agent memory, conversation history, skills, and configuration cannot be recovered.
You may want to save:
- Your agent instructions and personality settings.
- Memory files stored in ~/.openclaw/memory/.
- Conversation logs and session history.
- Custom skills and plugins you installed.
- Your openclaw.json config file for future reference.
- Cron jobs and scheduled tasks.
To create a backup before uninstalling:
openclaw backup createThis saves a local backup archive you can restore later if needed.
How to Uninstall OpenClaw on Linux and Mac
Make sure the gateway is not running before uninstalling.
openclaw gateway stopIf OpenClaw is running as a systemd service:
systemctl --user stop openclaw
systemctl --user disable openclawIf you installed OpenClaw with npm:
npm uninstall -g openclawVerify it was removed:
which openclawThis should return nothing or "not found."
OpenClaw stores its data in the ~/.openclaw/ directory. To remove everything:
rm -rf ~/.openclawThis removes:
- Your agent configuration (openclaw.json)
- Memory files
- Conversation history
- Installed skills and plugins
- Logs
- Cron jobs
- Media files
If you used a custom state directory (OPENCLAW_STATE_DIR), remove that as well.
If you set up OpenClaw as a systemd service:
rm ~/.config/systemd/user/openclaw.service
systemctl --user daemon-reloadnpm cache clean --forceAfter these steps, OpenClaw is fully removed from your Linux or Mac system.
How to Uninstall OpenClaw on Windows
Close any terminal running OpenClaw, or stop the gateway:
openclaw gateway stopnpm uninstall -g openclawOpenClaw stores data in %USERPROFILE%\.openclaw\. Open File Explorer or Command Prompt and delete this folder:
rmdir /s /q %USERPROFILE%\.openclawOr in PowerShell:
Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw"openclaw --versionThis should return "not recognized" or "not found."
How to Uninstall OpenClaw from Docker
If you run OpenClaw in a Docker container:
docker stop openclawdocker rm openclawdocker rmi openclaw/openclawOr if you used a specific tag:
docker images | grep openclaw
docker rmi <image-id>docker volume ls | grep openclaw
docker volume rm <volume-name>If you mounted a local directory for OpenClaw data, delete that directory manually.
How to Uninstall OpenClaw from a VPS
If you self-host OpenClaw on a VPS (DigitalOcean, Hetzner, AWS, etc.):
ssh user@your-server-ipopenclaw gateway stop
systemctl stop openclaw
systemctl disable openclawnpm uninstall -g openclawrm -rf ~/.openclaw
rm -f ~/.config/systemd/user/openclaw.service
systemctl daemon-reloadIf the VPS was only used for OpenClaw, you can delete the server from your hosting provider dashboard to stop billing.
If you want to avoid managing VPS infrastructure for OpenClaw, consider using managed hosting like Ampere.sh instead of running your own server.
How to Remove OpenClaw Plugins and Skills
Before uninstalling OpenClaw, you can remove individual plugins:
openclaw plugins list
openclaw plugins uninstall <plugin-name>To remove all installed skills:
rm -rf ~/.openclaw/skills/Skills from ClawHub are stored locally and will be removed when you delete the ~/.openclaw/ directory.
How to Remove OpenClaw Channels
If you connected messaging channels like WhatsApp, Telegram, Discord, or Slack, uninstalling OpenClaw disconnects them automatically. However:
- For WhatsApp: Your WhatsApp account is not affected. The OpenClaw bridge simply stops.
- For Telegram: Your bot token remains active on Telegram. Revoke it through @BotFather if needed.
- For Discord: Remove the bot from your Discord server through Server Settings → Integrations.
- For Slack: Remove the OpenClaw app from your Slack workspace through Slack admin settings.
Uninstalling OpenClaw does not delete your accounts on these platforms. It only removes the OpenClaw side of the connection.
Common Issues When Uninstalling OpenClaw
This means OpenClaw was already removed or installed in a different location. Check:
npm list -g openclaw
which openclawUse sudo if needed:
sudo rm -rf ~/.openclawOr fix ownership:
sudo chown -R $USER:$USER ~/.openclawCheck for background processes:
ps aux | grep openclawKill any remaining processes:
pkill -f openclawsystemctl --user stop openclaw
systemctl --user disable openclaw
rm ~/.config/systemd/user/openclaw.service
systemctl --user daemon-reloadWant to Reinstall OpenClaw Later?
If you change your mind, you can reinstall OpenClaw anytime:
npm install -g openclaw@latest
openclaw onboardOr skip the server setup entirely and use Ampere.sh for managed hosting. Deploy in 60 seconds without VPS, Docker, or manual configuration.


