Job id to cancel. Naming it explicitly skips confirmation (you named the target). Omitted: cancels your most recent job — a destructive default, so it is confirmed first: a y/N prompt on a terminal, or refused (exit 2) without –yes when not running interactively. A queued job is cancelled immediately; a running job has cancellation requested and this command waits for the worker to confirm it (Ctrl-C to detach without un-cancelling).
Skip the confirmation prompt for the no-JOB_ID form (required there when stdin isn’t a terminal, e.g. scripts/CI). Accepted and silently ignored when JOB_ID is given explicitly, since that invocation is never prompted anyway.