This topic explains how to edit, test, and delete segments.
To update a segment’s name, description, or tags:
Link segments to views to organize them and control access. Views let you group segments according to the teams in your organization and the features they work on.
To link a segment to a view when you create the segment, use the Add views dropdown in the segment creation dialog. To learn more, read Creating segments.
To link a segment to a view from the segment details page:
Your project might require new segments to be associated with at least one view. To learn more, read Require resources to be linked to a view.
To update a segment’s targeting:
You can use the test run feature to test a segment’s targeting rules to find out whether or not a particular context will be included in the segment. Testing segment targeting helps ensure that contexts are included or excluded from segments as you expect.
To test a segment’s targeting:
From the Segments list, open the segment you want to test.
Make any needed changes to the segment rules and save your changes.
Click the fingerprint test run icon. The “Test run a context” section appears.
In the contexts field, search for and select the context you want to preview.

The “Test run a context” section populates with whether or not the context is included in the segment.
To delete a segment:
You cannot delete a segment if one or more flags is using it.
You can also use the REST API: Delete segment