Delete an audience
delete_audienceDeletes an audience by ID, unlinking it from campaigns first; returns 409 when an active campaign uses it as the primary audience.
Instructions
Delete an audience. Required API key scope: audiences:write. DELETE /audiences/{id} Fails with 409 if an ACTIVE campaign uses it as its primary audience; otherwise unlinks it from other campaigns and deletes it.
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": {
"id": "<id>"
},
"name": "delete_audience"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Path parameter `id`. |