Delete segments

When deleting a segment, you must perform the following:

  1. Get the segment.

    For more information about finding a specific segment, see For developers: Query segments.

  2. Delete the segment.

    After you get the segment, you delete it.

  3. Save the changes.

    Finally, you must save the changes.

To delete a segment, you must use the PersonalizationManager class.

The following example deletes the segment with the specified Name: 

NOTE: By deleting the segment you delete all the pages that were personalized with this segment.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?