Delete Campaign (preview, then confirm)
delete_campaignDelete a draft, finished or aborted campaign (an A/B campaign is deleted with both variants). It can't be restored. A scheduled, queued, sending or paused campaign is refused. Needs campaign_id. Shows a preview first and deletes only with confirm: true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>"
},
"name": "delete_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to make the change. Leave it out first to get a preview, show it to the user, and ask them to confirm | |
| dry_run | No | Show what would be deleted without deleting | |
| campaign_id | Yes | Campaign ID (from list_campaigns) |