# A CLI exits 0 when a destructive command is refused

> Cloudflare's cf CLI documents that in a non-interactive session a destructive command without --force prints 'Aborted.' and exits with status 0, and a public...

Section: Evidence record · Independent measurement  
Canonical: https://agentexperience.tech/evidence/ev-0036/

Cloudflare's cf CLI documents that in a non-interactive session a destructive command without --force prints 'Aborted.' and exits with status 0, and a public issue reproduces this for workflows delete.

- **Evidence type**: [Independent measurement](https://agentexperience.tech/evidence/#class-independent-measurement): measured by someone with no stake in the productevidence class
- **Kind of finding**: Observationfinding type
- **Checked against**: The full text, 8 Oct 2026 verification
- **Topics**: [exit-codes](https://agentexperience.tech/evidence/#pattern-exit-codes), [non-interactive](https://agentexperience.tech/evidence/#pattern-non-interactive), [false-success](https://agentexperience.tech/evidence/#pattern-false-success), [confirmation](https://agentexperience.tech/evidence/#pattern-confirmation) pattern tags
- **Source**: [cloudflare/cf#94](https://github.com/cloudflare/cf/issues/94), GitHubmatthewbjones · 29 Sep 2026
- **Authors' stake**: None apparent.conflicts of interest

[Read the source](https://github.com/cloudflare/cf/issues/94) [Cite this record](https://agentexperience.tech/evidence/ev-0036/#cite)

## What the source measured

- **What was measuredmetric**: Exit status of a destructive command refused in non-interactive mode
- **With the changetreatment**: 'Aborted.' on standard error, no deletion, exit status 0
- **Which way it moveddirection**: Not applicable
- **How bigsize**: Exit 0 on a refused operation
- **How many casessample**: One public reproduction (cf 1.0.0-beta.5); documented as current behaviour

## Who and what was tested

- **Note on models:** Not an agent run: CLI behaviour in a non-interactive session (CI=true).

## Does anyone have a stake?

None apparent. The issue was filed by a user, not by Cloudflare.

## Source

[cloudflare/cf#94: workflows delete exits 0 when noninteractive confirmation aborts the operation](https://github.com/cloudflare/cf/issues/94). matthewbjones. GitHub, 29 September 2026.

The full primary source was fetched on 2026-10-08 and every number in this record was found in it. The documentation page (last updated 29 September 2026) states the behaviour and warns that "A successful exit does not mean the resource was deleted." The issue was open on the retrieval date.

Corroborating sources:

- [Use cf with coding agents](https://developers.cloudflare.com/cf/agents/), Cloudflare Docs, 29 September 2026.

## Limits of this finding

- Beta software (1.0.0-beta); the behaviour may change before general availability.
- The documentation states the behaviour plainly and warns about it under "Check for aborted deletes" ("A successful exit does not mean the resource was deleted"), so it is documented and known, not hidden; the public issue asks for a non-zero exit instead.

## What this means if you build tools

A refused or cancelled operation should exit non-zero, because the exit status is the main success signal an agent or script checks. If it must exit 0, the agent has to parse standard error, which is fragile.

## Related checks

- [Errors carry a fixed code](https://agentexperience.tech/insights/agent-readiness-rubric/#recover-01): Errors carry a stable code with the message. Rubric check · core
- [Effects are stated before the step](https://agentexperience.tech/insights/agent-readiness-rubric/#act-01): Before a step that matters, what it will do is stated where the agent decides: the cost, who will see it, and whether it can be undone. Rubric check · core

## Cite this record

Cite the original source for any number, and keep the evidence type and the models tested next to the figure. To point at this record, cite it as: AX evidence register, “A CLI exits 0 when a destructive command is refused”, `https://agentexperience.tech/evidence/ev-0036/`. The record is also in [/evidence.json](https://agentexperience.tech/evidence.json).

## Go here next

- [Error exits with status 0](https://agentexperience.tech/checks/axc-c002/): An unknown command, unknown flag or missing value exited with status 0, so an agent reads failure as success. Rule
- [Agent error recovery: design the path back](https://agentexperience.tech/insights/design-for-recovery/): Four fields turn an error into a decision: what failed, whether state changed, whether a retry is safe, and what input would fix it. Guide
- [Destructive and bulk commands that report success but do nothing](https://agentexperience.tech/evidence/ev-0037/): Users of Cloudflare's cf beta report commands that exit 0 without doing the work: R2 deletes of keys containing '/' (a cleanup script reported 2,220 objects deleted that were all still present) and a secrets bulk update that deployed an empty change to 100%. Evidence

[Vendor claim: 70% of new Supabase databases are created by agents or AI tools](https://agentexperience.tech/evidence/ev-0035/)

[Destructive and bulk commands that report success but do nothing](https://agentexperience.tech/evidence/ev-0037/)

[All records](https://agentexperience.tech/evidence/)
