openclaw uninstall
Uninstall OpenClaw from your system.
Usage
bash
openclaw uninstall [options]Options
| Option | Description |
|---|---|
--keep-config | Keep configuration files |
--keep-data | Keep data and sessions |
--force | Skip confirmation |
Examples
bash
# Uninstall (with confirmation)
openclaw uninstall
# Keep configuration
openclaw uninstall --keep-config
# Force uninstall
openclaw uninstall --forceWhat Gets Removed
| Component | Location |
|---|---|
| Binary | /usr/local/bin/openclaw |
| Configuration | ~/.config/openclaw/ |
| Data | ~/.local/share/openclaw/ |
| Logs | ~/.config/openclaw/logs/ |
| Services | launchd/systemd service files |
Manual Uninstall
If the command fails:
bash
# macOS/Linux
rm /usr/local/bin/openclaw
rm -rf ~/.config/openclaw
rm -rf ~/.local/share/openclaw
# Remove service (macOS)
launchctl unload ~/Library/LaunchAgents/ai.openclaw.gateway.plist
rm ~/Library/LaunchAgents/ai.openclaw.gateway.plist
# Remove service (Linux)
sudo systemctl disable openclaw-gateway
sudo rm /etc/systemd/system/openclaw-gateway.serviceSee Also
- reset - Reset without uninstall
- Installation