delete_segment
Delete a segment or tag from a Mailchimp audience while retaining all members. This action is irreversible; use update_segment to modify conditions.
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.
Authenticated via API key. Max 10 concurrent requests. Respects read-only and dry-run modes. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ||
| segment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |