campaigns_delete
Deletes the campaign record and everything that hangs off it — its step history and the messages it generated, sent ones included.
For that reason it returns 409 campaign_has_sent_messages as soon as the campaign has sent anything: those messages are the record of what was said to a lead and are not ours to erase. Use campaigns_archive for a campaign that is simply finished — it stops the campaign, hides it from the list, keeps every message, and frees its sequence and segment to be deleted.
Method: DELETE /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/
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": {
"sqid": "<sqid>"
},
"name": "campaigns_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes |