#How to wipe OpenClaw completely from my system?

1 messages ยท Page 1 of 1 (latest)

quaint rose
#

I want to migrate from local OpenClaw to Docker-managed OpenClaw. How to wipe OpenClaw completely from my system before doing that?

brazen pollenBOT
solar groveBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

visual kettleBOT
#

Let me check the actual docs first so I don't give you made-up paths.

#

Yep, if you want a true clean slate before moving to Docker, the easiest official path is:

openclaw uninstall --all --yes --non-interactive

That removes the managed service, state/config, workspace, and macOS app (if present).

If you also want the CLI itself gone, remove the global install too:

npm rm -g openclaw
# or
pnpm remove -g openclaw
# or
bun remove -g openclaw
#

If you installed from a git checkout, also delete that repo folder after uninstalling the service.

A couple of gotchas:

  • default state dir is ~/.openclaw
  • if you used profiles, also check ~/.openclaw-<profile>
  • if you set OPENCLAW_STATE_DIR or OPENCLAW_CONFIG_PATH, clean those custom paths too

If the CLI is already broken/missing, manual service removal is:

Linux

systemctl --user disable --now openclaw-gateway.service
rm -f ~/.config/systemd/user/openclaw-gateway.service
systemctl --user daemon-reload