# Edit & Delete Segment

## Edit a Segment

1. Go to the **User Segment** dashboard from the left panel.
2. Locate the segment you want to modify.
3. Click the **three-dot menu (⋯)** under the **Actions** column.

<figure><img src="/files/GbNsnVVGuc6UqtxFspf1" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dXc5wioBhv1bOIjxqcCO" alt=""><figcaption></figcaption></figure>

4. Select **Edit**.
5. The segment creation screen will open with pre-filled values.
6. Make your required changes to:
   * Segment name
   * Criteria (language, page visited, sessions)
   * AND/OR logic
7. Click **Update Segment** to save your changes.

> 🔄 The updated segment will immediately reflect in all push campaigns where it’s used.

## Delete a Segment

1. From the **User Segment** dashboard, click the **three-dot menu (⋯)** next to the segment.
2. Click **Delete**.

{% hint style="warning" %}
&#x20;**If the segment is currently used in a Push Notification campaign:**

* A **confirmation dialog** will appear, listing the **names of all scheduled Push Notification campaigns** that are using this segment.
* This is to help you identify what campaigns may be affected before proceeding.
  {% endhint %}

**Dialog Example:**

<figure><img src="/files/Vx1ggG9ILCcAu9p4CRMH" alt=""><figcaption></figcaption></figure>

3. If you still want to proceed, click **“Delete”** in the dialog.

***

### What Happens After Deletion?

* The segment is **permanently removed** from your project.
* Any Push Notifications that used this segment will be **updated to have no filtering**, meaning they will now be **sent to all users** unless manually edited.

{% hint style="danger" %}
**Important:** Deleting a segment cannot be undone. Please confirm carefully before proceeding.
{% endhint %}

### Best Practices

* Always **double-check campaign usage** before deleting a segment.
* If you're unsure, consider **editing the segment** instead of deleting it.
* Regularly review segments for relevance to avoid sending untargeted messages.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.twinr.dev/segmentation/edit-and-delete-segment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
