AgentKit
ReferenceCLI commands

CLI commands

ak commands remove

Remove an installed command

ak commands remove

Remove an installed command

Synopsis

What it does: Delete a command's installed files; if the asset has a runtime env and skill runtime is not opted out, the env is also cleaned up. Idempotent - removing an absent ref reports an info notice and exits 0.

Who it's for: Both: scripted CI cleanup (--json) and users undoing an install.

When to use it: To uninstall a previously installed command.

Examples: ak commands remove engineer/agent-browser ak commands remove engineer/agent-browser --json

What changes on disk: Removes files under ~/.claude/plugins/<kit>/commands/<name>/. Unless AGENTKIT_SKILL_RUNTIME=0, also removes ~/.agentkit/skills/<kit>/<name>/.

Output modes: pretty default on TTY (colors, ASCII markers) plain auto when stdout piped or --no-interactive json --json (single-object envelope, NDJSON-safe)

Exit codes: 0 success 1 runtime error 2 invalid flags 3 user-cancel (SIGINT, prompt-cancel)

ak commands remove <kit>/<command> [flags]

Options

  -h, --help             help for remove
      --json             Emit machine-readable JSON (implies --no-interactive)
      --no-interactive   Disable interactive prompts (CI-safe)
  -q, --quiet            Suppress non-error output on stderr
  -V, --verbose          Extra diagnostic output on stderr (loses to --quiet)
  -y, --yes              Assume yes for all prompts

SEE ALSO

On this page