CLI commands
ak projects remove
Deregister a project from the global registry
ak projects remove
Deregister a project from the global registry
Synopsis
What it does:
Remove a project entry from ~/.agentkit/projects.json by name or absolute path. The project directory and its files are NOT touched; only the registry entry is deleted. This command is called automatically by ak uninstall unless --keep-registry is passed.
Who it's for: Both: power devs (--json) and non-technical users.
When to use it: Cleaning up stale registry entries for moved or deleted projects.
Examples: ak projects remove myproj # remove by name ak projects remove $HOME/projects/myproj # remove by absolute path ak projects remove ./myproj --json # machine-readable output
What changes on disk: Writes ~/.agentkit/projects.json atomically (removes one entry).
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) 0 success, or entry was already absent (idempotent) 2 invalid arguments 1 registry read/write error
ak projects remove <name|path> [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 promptsSEE ALSO
- ak projects - Manage the global AK project registry