ReferenceCLI commands
BetaYou are reading docs for the beta channel (
2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →CLI commands
ak kit uninstall
Remove an installed kit plugin
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.
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.
Usage
ak kit uninstall <kit-name> [flags]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 planFlags
| Flag | Description |
|---|---|
--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 prompts |
Output modes
| Mode | Behavior |
|---|---|
pretty | default on TTY (colors, ASCII markers) |
plain | auto when stdout piped or --no-interactive |
json | --json (single-object envelope, NDJSON-safe) |
Exit codes
| Code | Meaning |
|---|---|
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 |
Related commands
ak kit— Kit management commands