How to Completely Uninstall OpenClaw on Windows, macOS, and WSL
This guide walks you through a clean removal of OpenClaw—including resetting configurations, running the official uninstall command with appropriate flags, deleting the CLI tool across package managers, and handling leftover API keys—so you can safely retire the software on Windows, macOS, or WSL environments.
This guide describes how to completely uninstall OpenClaw from Windows, macOS, and WSL environments.
Step 0: Identify Your Situation
If you only need to reset configuration, run openclaw reset. To remove the software entirely, proceed with the full uninstall steps.
Step 1: Open a Terminal
Windows:
Press Win + R, type cmd and press Enter.
Or open PowerShell from the Start menu.
If OpenClaw was installed inside WSL, first run wsl (or wsl -d Ubuntu for a specific distro) to enter the WSL environment.
macOS:
Open the Terminal application.
Or press Command + Space, type “Terminal”, and launch it.
Step 2: Run the Official Uninstall Command
Execute the following command and press Enter: openclaw uninstall --all --yes This command performs three actions: uninstall: removes the program. --all: deletes services, configuration files, databases, and other local data. --yes: automatically confirms prompts.
Important: Back up any workspace files (e.g., Markdown notes) before running the command, as --all permanently deletes them.
Dry‑Run (Preview)
To see what would be removed without making changes: openclaw uninstall --dry-run For a non‑interactive preview that prints the deletion plan:
openclaw uninstall --all --yes --non-interactive --dry-runStep 3: Remove the CLI Tool
After the uninstall command finishes, the openclaw executable may still be present. Remove it according to the package manager you used:
npm global install: npm rm -g openclaw pnpm global install: pnpm remove -g openclaw bun global install:
bun remove -g openclawStep 4: Reboot and Clean Up API Keys
Restart your computer to terminate any lingering background processes.
If you stored API keys (e.g., OpenAI, Claude) in OpenClaw, revoke those keys on the provider’s website and generate new ones to prevent accidental usage and billing.
Final Notes
For the most up‑to‑date uninstall instructions, consult the official documentation:
Uninstall guide: https://docs.openclaw.ai/install/uninstall
CLI reference: https://docs.openclaw.ai/cli
CLI uninstall page: https://docs.openclaw.ai/cli/uninstall
Data Party THU
Official platform of Tsinghua Big Data Research Center, sharing the team's latest research, teaching updates, and big data news.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
