2026-01-15 06:12:54 +00:00
|
|
|
---
|
2026-01-30 03:15:10 +01:00
|
|
|
summary: "CLI reference for `openclaw uninstall` (remove gateway service + local data)"
|
2026-01-15 06:12:54 +00:00
|
|
|
read_when:
|
|
|
|
|
- You want to remove the gateway service and/or local state
|
|
|
|
|
- You want a dry-run first
|
2026-01-31 16:04:03 -05:00
|
|
|
title: "uninstall"
|
2026-01-15 06:12:54 +00:00
|
|
|
---
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
# `openclaw uninstall`
|
2026-01-15 06:12:54 +00:00
|
|
|
|
|
|
|
|
Uninstall the gateway service + local data (CLI remains).
|
|
|
|
|
|
2026-04-04 08:30:16 +01:00
|
|
|
Options:
|
|
|
|
|
|
|
|
|
|
- `--service`: remove the gateway service
|
|
|
|
|
- `--state`: remove state and config
|
|
|
|
|
- `--workspace`: remove workspace directories
|
|
|
|
|
- `--app`: remove the macOS app
|
|
|
|
|
- `--all`: remove service, state, workspace, and app
|
|
|
|
|
- `--yes`: skip confirmation prompts
|
|
|
|
|
- `--non-interactive`: disable prompts; requires `--yes`
|
|
|
|
|
- `--dry-run`: print actions without removing files
|
|
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
|
2026-01-15 06:12:54 +00:00
|
|
|
```bash
|
2026-03-09 04:21:20 +08:00
|
|
|
openclaw backup create
|
2026-01-30 03:15:10 +01:00
|
|
|
openclaw uninstall
|
2026-04-04 08:30:16 +01:00
|
|
|
openclaw uninstall --service --yes --non-interactive
|
|
|
|
|
openclaw uninstall --state --workspace --yes --non-interactive
|
2026-01-30 03:15:10 +01:00
|
|
|
openclaw uninstall --all --yes
|
|
|
|
|
openclaw uninstall --dry-run
|
2026-01-15 06:12:54 +00:00
|
|
|
```
|
2026-03-09 04:21:20 +08:00
|
|
|
|
2026-04-04 08:30:16 +01:00
|
|
|
Notes:
|
|
|
|
|
|
|
|
|
|
- Run `openclaw backup create` first if you want a restorable snapshot before removing state or workspaces.
|
|
|
|
|
- `--all` is shorthand for removing service, state, workspace, and app together.
|
|
|
|
|
- `--non-interactive` requires `--yes`.
|