Delete leads
delete_leadsDelete leads from a campaign, selected by EXACTLY ONE of: ids (up to 1000), filter (search / status / tags, at least one non-empty), or all: true (every lead of the campaign). Leads an email already went to are never deleted: they stay in the campaign with their history and are reported in errors.
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": {
"campaignId": "<campaignId>"
},
"name": "delete_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Delete EVERY lead of the campaign. | |
| ids | No | ||
| filter | No | ||
| campaignId | Yes | Campaign id (UUID). |