> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/relate/segments/segments-how-to-delete-leads-from-a-segment.md).

# Segments - How to delete leads from a segment?

You can remove leads from the segment in three ways:

1 - Inside the lead

2 - Via automation flow (bulk removal)

3 - When the lead no longer meets the segment filter

**See the step-by-step instructions below for both cases:**

**1 - In this first case, inside the lead, access the lead that will be removed from the segment, click Edit**

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

Then go to System Data, and remove the segment. Click Save and close.<br>

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

**2 - In this second case, we will remove the lead from the segment through the Automation Flow.**&#x20;

* NOTE: Keep the flow published only if you want to perform this action in bulk. After removing the leads from the segment, deactivate the flow.

Go to Automation Flow

<figure><img src="/files/04bb76c1de3856007b3a8f2ff6dbe790f66df982" alt=""><figcaption></figcaption></figure>

Click +New, add a name, and indicate the segment.

<figure><img src="/files/95da0db05fc80498eaab53624ff19a8279631eba" alt=""><figcaption></figcaption></figure>

Open the Builder, and add the action “Change the lead segments,” and in Remove from Segments, indicate the segment. Click Apply, then Save and Close.

<figure><img src="/files/95fb6302ddbd9a55d7fdf9495698349ffb47392f" alt=""><figcaption></figcaption></figure>

**3 - The third way is through the segment filter.**

In this example, we placed leads that do not have an email filled in into a segment.

Enable the option: Remove leads that no longer meet the filter (YES)

<figure><img src="/files/9130302b63eee7512279d68cf502446b64bde7ec" alt=""><figcaption></figcaption></figure>

Then when these leads have information in the email field, they will be automatically removed from the segment.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/en/topics/relate/segments/segments-how-to-delete-leads-from-a-segment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
