DELETE
/v1/segments/{segment_id}Delete a segment
Deletes a segment definition and stops future audience refreshes that depend on it.
Authentication
Requires Authorization: Bearer ${API_KEY}. Create and rotate keys from the TrackLayer dashboard.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
segment_id | string | Yes | Segment identifier. |
Response schema · 200
{
"deleted": true,
"segment_id": "seg_123"
}Response example
{
"deleted": true,
"segment_id": "seg_123"
}Code examples
curl https://api.tracklayer.com/v1/segments/seg_123 \
-X DELETE \
-H "Authorization: Bearer ${API_KEY}"Try it out
Use the dashboard to create an API key, then run one of the examples above with TRACKLAYER_API_KEY set in your environment.