AgentKit
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 plan

Flags

FlagDescription
--dry-runShow uninstall plan without deleting files
-h, --helphelp for uninstall
--jsonEmit machine-readable JSON (implies --no-interactive)
--kits-dir stringKits directory override (default: embedded kits; overrides: --kits-dir or $AGENTKIT_KITS_DIR)
--no-interactiveDisable interactive prompts (CI-safe)
--plugin-modeExplicitly deactivate a Claude Code project plugin
--project-dir stringProject directory for a native project install; combine with --plugin-mode for a project plugin
-q, --quietSuppress non-error output on stderr
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
1invalid kit, unreadable install tree, or unsafe plugin ownership
3dry-run or not confirmed
  • ak kit — Kit management commands

On this page