Skip to main content
DELETE
Delete Segment
Delete a saved segment. Subscribers matched by the segment are not affected, only the saved filter definition is removed. This action cannot be undone. Deleting is not blocked when the segment is in use. The response lists the sequences, campaigns, segments and ad audience syncs that read the segment. Draft campaigns and conditions inside email content are not checked. From then on, each of them treats every contact as not in the segment: a sequence that starts when contacts enter it no longer starts, a condition that checks it takes the “not in segment” path, an exit condition on it never fires, and a segment rule “is in” it matches nobody (while “is not in” it matches everyone). Point those at another segment if they should keep working.

Request

string
required
Segment ID.

Response

boolean
true when the segment was deleted.
If the usage check fails, the segment is still deleted and the four affected* fields are omitted. A missing field means usage is unknown, not that nothing used the segment.
array
Sequences (draft, active or paused; archived ones are left out) that read the segment. Empty when none did.
array
Campaigns that still read the segment and targeted or excluded it: unsent campaigns (scheduled, waiting_approval, sending or paused) and live in-app campaigns (status sent, type in_app, not yet ended). Each has id, name, status and type.
array
Other segments whose rules referenced this segment, each with id and name.
array
Ad audience syncs that pushed this segment’s members, each with id and audienceName.