Flags API reference

Flags API · Segments

delete/v1/workspaces/{workspace_id}/segments/{segment_id}Auth

Delete a segment

Deletes an unused segment. Needs `flags.delete`.

Path parameters

segment_id*string · uuid

Id of the segment.

workspace_id*string · uuid

Id of the workspace.

Query parameters

notestring

A change note (at most 500 characters), saved on the history entry. Environments with `require_note` refuse value writes without one.

Response · 204

Deleted.

Example

Request

DELETE https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/segments/{segment_id}
Authorization: Bearer YOUR_TOKEN