> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Segment

> Delete a saved subscriber 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.

## Request

<ParamField path="segmentId" type="string" required>
  Segment ID.
</ParamField>

```bash theme={null}
curl -X DELETE "https://api.sequenzy.com/api/v1/segments/seg_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```

  ```json 401 theme={null}
  {
    "error": "Invalid API key"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "Segment not found"
  }
  ```
</ResponseExample>
