delete_segment
Delete a segment or tag from an audience. Members remain in the audience. Requires audience ID and segment ID.
Instructions
Delete a segment or tag from an audience. Members remain in the audience.
Irreversible. Use update_segment to rename or modify conditions instead of deleting. Use list_segments to find segment IDs.
Returns 404 error if segment does not exist.
Args: list_id: Audience/list ID (10-char alphanumeric, e.g. 'abc123def4'). Obtain from list_audiences. segment_id: Segment/tag ID to delete (numeric string, e.g. '12345'). Obtain from list_segments.
Returns: JSON with status ("deleted"), segment_id.
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": {
"list_id": "<list_id>",
"segment_id": "<segment_id>"
},
"name": "delete_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| list_id | Yes | ||
| segment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |