/v1/workspaces/{workspace_id}/segments/{segment_id}AuthDelete a segment
Deletes an unused segment. Needs `flags.delete`.
Path parameters
segment_id*string · uuidId of the segment.
workspace_id*string · uuidId of the workspace.
Query parameters
notestringA 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