This guide covers all supported ways to fully remove OpenClaw, including cases where the CLI is missing but background services are still running.
Use this if the openclaw command still works.
openclaw uninstallopenclaw uninstall --all --yes --non-interactive
npx -y openclaw uninstall --all --yes --non-interactiveUse this if you want explicit control or debugging visibility.
openclaw gateway stopopenclaw gateway uninstallrm -rf "${OPENCLAW_STATE_DIR:-$HOME/.openclaw}"If you set OPENCLAW_CONFIG_PATH to a custom location outside the state directory, delete that file manually as well.
rm -rf ~/.openclaw/workspacenpm rm -g openclaw
pnpm remove -g openclaw
bun remove -g openclawrm -rf /Applications/OpenClaw.app-
If you used profiles (
--profileorOPENCLAW_PROFILE), repeat state deletion for each:rm -rf ~/.openclaw-<profile>
-
In remote mode, the state directory lives on the gateway host — run steps 1–4 there as well.
Use this if OpenClaw services are still running but the CLI is gone.
Default label:
bot.molt.gateway- or
bot.molt.<profile> - legacy:
com.openclaw.*
launchctl bootout gui/$UID/bot.molt.gateway
rm -f ~/Library/LaunchAgents/bot.molt.gateway.plistIf you used profiles, replace gateway with <profile>.
Also remove any legacy com.openclaw.*.plist files if present.
Default unit:
openclaw-gateway.service- or
openclaw-gateway-<profile>.service
systemctl --user disable --now openclaw-gateway.service
rm -f ~/.config/systemd/user/openclaw-gateway.service
systemctl --user daemon-reloadDefault task:
OpenClaw Gateway- or
OpenClaw Gateway (<profile>)
schtasks /Delete /F /TN "OpenClaw Gateway"PowerShell cleanup:
Remove-Item -Force "$env:USERPROFILE\.openclaw\gateway.cmd"If you used profiles, delete:
$env:USERPROFILE\.openclaw-<profile>\gateway.cmdIf you used:
https://openclaw.bot/install.shinstall.ps1npm install -g openclaw@latest
Remove with:
npm rm -g openclaw
# or
pnpm remove -g openclaw
bun remove -g openclawIf you ran OpenClaw from a repo checkout:
- Uninstall the gateway service first (Easy Path or Manual Service Removal)
- Delete the repo directory
- Delete state + workspace:
rm -rf ~/.openclaw ~/.openclaw/workspaceAfter uninstalling, confirm nothing is running:
ps aux | grep openclaw
launchctl list | grep molt
systemctl --user list-units | grep openclawIf anything still shows up, you missed a service or profile.
- Your original content was correct but messy.
- This version is publishable, auditable, and support-ready.
- Drop this into a GitHub Gist or README as-is — no cleanup needed.
If you want, I can also:
- Add troubleshooting scenarios
- Create a short “TL;DR” uninstall
- Convert this into official docs format (Docusaurus / MkDocs)
Say the word.
complete guide to uninstall OpenClaw
https://youtu.be/ZtCqO2U-n9M