CLI commands
ak kit uninstall
Remove an installed kit plugin
ak kit uninstall
Remove an installed kit plugin
Synopsis
What it does: Remove AgentKit-owned files for one installed kit. The command compares the installed plugin tree against the current kit output and preserves unknown or user-modified files.
Who it's for: Power users scripting global kit cleanup; operators validating install/uninstall lifecycle.
When to use it:
Use after ak kit init <kit> when the kit should no longer be installed.
Examples: ak kit uninstall engineer --dry-run # show files that would be removed ak kit uninstall engineer --yes # remove matching AK-owned kit files ak kit uninstall engineer --json --dry-run # machine-readable plan
What changes on disk: Deletes matching AgentKit-generated files under ~/.claude/plugins/ak-<kit>/, unregisters the Claude Code plugin entry/settings when present, strips AK-managed global Codex runtime blocks, removes manifest-backed kit content, and snapshots before writes.
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) 1 invalid kit, unreadable install tree, or unsafe plugin ownership 3 dry-run or not confirmed
ak kit uninstall <kit-name> [flags]Options
--dry-run Show uninstall plan without deleting files
-h, --help help for uninstall
--json Emit machine-readable JSON (implies --no-interactive)
--kits-dir string Kits directory override (default: embedded kits; overrides: --kits-dir or $AGENTKIT_KITS_DIR)
--no-interactive Disable interactive prompts (CI-safe)
--plugin-mode Explicitly deactivate a Claude Code project plugin
--project-dir string Project directory for a native project install; combine with --plugin-mode for a project plugin
-q, --quiet Suppress non-error output on stderr
-V, --verbose Extra diagnostic output on stderr (loses to --quiet)
-y, --yes Assume yes for all promptsSEE ALSO
- ak kit - Kit management commands