CLI commands
Uninstall
openclaw uninstall
Uninstall the Gateway service and/or local data. The CLI itself is not removed; uninstall it via npm/pnpm separately.
Options
| Flag | Default | Description |
|---|---|---|
--service |
false |
Remove the Gateway service. |
--state |
false |
Remove state and config. |
--workspace |
false |
Remove workspace directories. |
--app |
false |
Remove the macOS app. |
--all |
false |
Shorthand for --service --state --workspace --app. |
--yes |
false |
Skip confirmation prompts. |
--non-interactive |
false |
Disable prompts; requires --yes. |
--dry-run |
false |
Print planned actions without removing files. |
With no scope flags, an interactive multiselect prompts for which components to remove (defaults to service, state, workspace preselected).
Examples
openclaw backup createopenclaw uninstallopenclaw uninstall --service --yes --non-interactiveopenclaw uninstall --state --workspace --yes --non-interactiveopenclaw uninstall --all --yesopenclaw uninstall --dry-runNotes
- Run
openclaw backup createfirst for a restorable snapshot before removing state or workspaces. --statepreserves configured workspace directories unless--workspaceis also selected.
Related
Was this useful?