Skip to content
Cisco AI Defense logo
CiscoAI Security

Uninstall — DefenseClaw

Overview

defenseclaw uninstall stops the sidecar, optionally reverts OpenClaw configuration, removes the plugin, deletes data under ~/.defenseclaw/, and optionally removes symlinks and binaries from ~/.local/bin. defenseclaw reset is a narrower data wipe: it deletes the data directory but keeps binaries and (by default) the plugin so defenseclaw quickstart can rehydrate quickly.

defenseclaw uninstall

FlagEffect
--allAlso delete the data directory (wipe_data)
--binariesRemove defenseclaw, defenseclaw-gateway, scanner symlinks, and litellm from ~/.local/bin
--keep-openclawDo not revert openclaw.json or remove the plugin
--dry-runPrint the plan only
--yesSkip confirmation

Default plan (no flags): stop gateway, revert OpenClaw config (pristine backup preferred), remove plugin, do not wipe data or binaries.

defenseclaw reset

  • Always wipes the data directory (same safety checks as uninstall).
  • Keeps binaries; does not remove the plugin (remove_plugin=False).
  • Suggests running defenseclaw quickstart afterward.

State directory layout

Paths resolve from defenseclaw.config (default_data_path()), typically ~/.defenseclaw/ (override with DEFENSECLAW_HOME where supported).

PathRole
config.yamlPrimary config
audit.dbSQLite audit store
.envSecrets (doctor may tighten to mode 0600)
policies/Seeded Rego, guardrail profiles, OpenShell templates
quarantine/Quarantine storage
extensions/defenseclaw/Installed OpenClaw plugin payload (release or make plugin-install)
.venv/Release/curl install Python environment (when used)
gateway.log / gateway.jsonlSidecar logs
gateway.pidDaemon PID file
doctor_cache.jsonLast defenseclaw doctor snapshot for the TUI
backups/Upgrade backups (upgrade-<timestamp>/)

OpenClaw home defaults to ~/.openclaw/; uninstall may restore openclaw.json from a pristine backup captured during guardrail setup.

Sidecar stop

Uninstall runs defenseclaw-gateway stop when the binary is on PATH before mutating config or deleting data.

Related