Skip to main content

openclaw uninstall

Uninstall the Gateway service and/or local data. The CLI itself is not removed; uninstall it via npm/pnpm separately.

Options

FlagDefaultDescription
--servicefalseRemove the Gateway service.
--statefalseRemove state and config.
--workspacefalseRemove workspace directories.
--appfalseRemove the macOS app.
--allfalseShorthand for --service --state --workspace --app.
--yesfalseSkip confirmation prompts.
--non-interactivefalseDisable prompts; requires --yes.
--dry-runfalsePrint 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 create
openclaw uninstall
openclaw uninstall --service --yes --non-interactive
openclaw uninstall --state --workspace --yes --non-interactive
openclaw uninstall --all --yes
openclaw uninstall --dry-run

Notes

  • Run openclaw backup create first for a restorable snapshot before removing state or workspaces.
  • --state preserves configured workspace directories unless --workspace is also selected.