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 content queue cancel

Cancel (remove) a scheduled post by ID

Remove a pending post from the queue by its ID. The ID is shown by ak content queue list. Only pending posts can be cancelled; already-published posts are ignored.

Who it's for: Both: power devs scripting content pipelines and non-technical users.

When to use it: When you want to prevent a scheduled post from firing.

What changes on disk: Writes ~/.agentkit/content/queue.json (atomic replacement).

Usage

ak content queue cancel <id> [flags]

Examples

ak content queue cancel abc123def456

Flags

FlagDescription
-h, --helphelp for cancel
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
-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)
1id not found or I/O error
2missing argument

On this page