Cancel all running background jobs and remove the campaign plus every cascaded row. Irreversible.
campaigns row — Postgres FK cascades remove: campaign_prospects, campaign_prospect_messages, campaign_sender_accounts links, campaign_sequence_nodes (and their AI extensions)sent prospects, their conversation history in our conversations table is lost too.Safer alternatives to offer first:POST /api/campaigns/{id}/pause — halts sends, keeps all data, reversible with resumePATCH /api/campaigns/{id} with a renamed campaign + smaller sequence — if the user wants to pivot, not abandonPromise.allSettled — individual failures are swallowed, the DB delete proceeds either way. A 500 from this endpoint means the DB delete itself failed; run cancellation errors do not surface.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Campaign UUID
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Campaign deleted. All Trigger.dev runs cancelled; all cascaded rows removed.
true