> For the complete documentation index, see [llms.txt](https://api.senderwiz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.senderwiz.com/customer/segments/delete-a-list-segment.md).

# 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

```http
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

```php
// 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

```json
{
  "status": "success"
}
```
