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

{
  "status": "success"
}

Last updated