Appearance
Campaigns Delete
lindris campaigns delete
Delete a campaign
Synopsis
DELETE /api/campaigns/{id}. Asks for confirmation unless --yes is passed. When stdin is not an interactive terminal (scripts, MCP), --yes is required — the command refuses to delete rather than block on a prompt nobody can answer. Declining at the prompt exits 2, the same code as that refusal: both are answered by passing --yes. A campaign that is actively sending cannot be deleted (the API returns 422).
On success --output json (the default) emits {"id":<id>,"deleted":true}; --output text prints a one-line receipt instead. The confirmation prompt and the abort message always go to stderr, so stdout carries only the result.
bash
lindris campaigns delete <id> [flags]Options
-o, --outputstring - Output format: json|text. Default:json--yes- Skip the confirmation prompt (required when stdin is not a terminal)
See Also
lindris campaigns- Manage one-time email campaigns — wraps /api/campaigns