Delete a List Segment

Permanently delete a segment from a subscriber list. This action will remove the segment and its conditions from the list.

๐Ÿ—‘๏ธ Delete a List Segment

Remove a segment from a list using its unique segment and list identifiers. This operation is irreversible.

๐Ÿ”น HTTP Request

DELETE API-URL/lists/LIST-UNIQUE-ID/segments/SEGMENT-UNIQUE-ID

๐Ÿ”ธ URL Segments

Segment
Required
Description

LIST-UNIQUE-ID

Yes

Unique identifier of the list.

SEGMENT-UNIQUE-ID

Yes

Unique identifier of the segment.

๐Ÿ” Authorization Header

X-API-KEY: your-api-key-here

๐Ÿ’ป PHP Example

// Delete SEGMENT
$response = $endpoint->delete('LIST-UNIQUE-ID', 'SEGMENT-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';

๐Ÿ“ฆ Sample JSON Response