How to Uninstall OpenClaw on Windows

Step-by-step guide to fully uninstall OpenClaw on Windows — remove the app, scheduled tasks, config, caches, and verify a clean state.
Mar 13, 2026

Step 1: Open a terminal

Press Win + R, type cmd, and press Enter. Or search for PowerShell in the Start menu.

Step 2: Quick uninstall (CLI still installed)

If the openclaw command still works, run:

openclaw uninstall --all --yes
  • uninstall — tells the program you want to remove it.
  • --all — removes everything: gateway service, local database, config files.
  • --yes — auto-confirms all prompts.

For fully non-interactive use (scripts, CI, npx):

openclaw uninstall --all --yes --non-interactive
npx -y openclaw uninstall --all --yes --non-interactive

Step 3: Remove the CLI tool

After the uninstall command finishes, only the CLI shell remains. Remove it with whichever package manager you originally used:

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

Step 4: Manual service removal (CLI already gone)

If the openclaw command is missing but the gateway scheduled task is still running:

Command Prompt:

schtasks /Delete /F /TN "OpenClaw Gateway"

PowerShell:

Remove-Item -Force "$env:USERPROFILE\.openclaw\gateway.cmd"

If you used profiles, delete the matching task name and script:

schtasks /Delete /F /TN "OpenClaw Gateway (<profile>)"
Remove-Item -Force "$env:USERPROFILE\.openclaw-<profile>\gateway.cmd"

Step 5: Delete state, config, and workspace

PowerShell:

Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw"

Command Prompt:

rmdir /s /q "%USERPROFILE%\.openclaw"

If you set OPENCLAW_CONFIG_PATH to a custom location, delete that file too. If you used profiles, repeat for each state dir (e.g. %USERPROFILE%\.openclaw-<profile>).

Step 6: Review common Windows leftovers

CategoryPlaces to check
Roaming data%AppData%\openclaw
Local data%LocalAppData%\openclaw
ProgramDataC:\ProgramData\openclaw
Temp and caches%TEMP% (search for openclaw-related folders)
Project configWorkspaces where OpenClaw stored config or state

Step 7: Check startup behavior

Review and clean up:

  • Task Scheduler — open taskschd.msc and search for OpenClaw entries.
  • Startup folder — check shell:startup for OpenClaw shortcuts.
  • Services — open services.msc and look for OpenClaw services.

Step 8: Check shell and environment changes

If OpenClaw modified your environment:

  • Check PATH for OpenClaw entries (System Properties → Environment Variables).
  • Review PowerShell profile files ($PROFILE).
  • Remove any OPENCLAW_* environment variables.

Step 9: Reboot and verify

  1. Restart Windows.
  2. Open a terminal and run:
where.exe openclaw
Get-ScheduledTask | Where-Object { $_.TaskName -like '*OpenClaw*' }

Both should return empty results.

Important notes

  • Reboot recommended — restart after cleanup to ensure all background processes and scheduled tasks are fully stopped.
  • Revoke API keys — if you bound API keys (OpenAI, Claude, etc.) in OpenClaw, go to the provider dashboard and revoke the old keys, then generate new ones.
  • Remote mode — if you used remote mode, the state directory lives on the gateway host. Run the cleanup steps there too.

How to Uninstall OpenClaw on Windows