Uninstall
Removing OpenClaw from your system.
Using CLI
bash
openclaw uninstallThis removes:
- OpenClaw binary
- Configuration files
- Data and sessions
- Services
Keep Data
To uninstall but keep your data:
bash
openclaw uninstall --keep-config --keep-dataManual Uninstall
If the CLI doesn't work:
macOS
bash
# Remove binary
rm /usr/local/bin/openclaw
# Remove configuration
rm -rf ~/.config/openclaw
# Remove data
rm -rf ~/.local/share/openclaw
# Remove service
launchctl unload ~/Library/LaunchAgents/ai.openclaw.gateway.plist
rm ~/Library/LaunchAgents/ai.openclaw.gateway.plistLinux
bash
# Remove binary
sudo rm /usr/local/bin/openclaw
# Remove configuration
rm -rf ~/.config/openclaw
# Remove data
rm -rf ~/.local/share/openclaw
# Remove service
sudo systemctl disable openclaw-gateway
sudo rm /etc/systemd/system/openclaw-gateway.service
sudo systemctl daemon-reloadReinstalling
After uninstalling, you can reinstall anytime:
bash
curl -fsSL https://get.openclaw.ai | bash