> 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/automation-flows/tutorial-videos/how-to-delete-leads-from-comments.md).

# How to Delete Leads from Comments

Leads captured by comments on social media posts do not mix with WhatsApp-origin leads. If these contacts do not make sense for your funnel, you can remove them to keep the database clean and free up space.\
Follow the step-by-step video or use the instructions below as a checklist.

Tools used

* **Segments with filter**
* **Automation Flows**

Check out the step by step:

{% embed url="<https://youtu.be/uUSIBtPt4lo>" %}

1. Create a Segment that filters only leads with origin: comment.

Go to “Segments” in the Menu.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F4FYb3lgNeoFN1yNyTBBq%2Fseg1.png?alt=media&amp;token=c200f53b-4837-46f4-8da9-ba2638ccf58b" alt=""><figcaption></figcaption></figure>

Set a name, and click the “Filters” tab.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FBwlhRoEZY4rev9u9Mh5L%2Fseg2.png?alt=media&amp;token=791eda60-2084-4b7a-8b39-ec25aaea87db" alt=""><figcaption></figcaption></figure>

Select the condition “The lead commented on a post (Meta)”, choose the Meta account. Make sure the filter is published, and click “Save and Close”.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FeY1aqoRQgl76dKsaC7Wp%2Fseg3.png?alt=media&amp;token=3daf2276-f1f3-44c4-b004-dcfcc9b2a7f8" alt=""><figcaption></figcaption></figure>

2. Create an Automation Flow with the action “Delete Lead”

Go to “Automation Flows” in the Menu.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FggF2NQjHRf6GkBxR8zMi%2Fseg4.png?alt=media&amp;token=dcd969dc-4579-4635-8284-29864eca1f2e" alt=""><figcaption></figcaption></figure>

Click “+ New”, define a name for the flow, and indicate the previously created segment in the “Segments” field. Click “Open Builder”.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FvQJ6W7ScR5OB0jgJPzwt%2Fsg5.png?alt=media&amp;token=ad7911be-7208-40c9-a8c6-15e2137a6480" alt=""><figcaption></figcaption></figure>

Click the orange dot, and in “Actions” add the “Delete Lead” action. Click “Apply”

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F2M0jk33XIfGGNKPHjTkJ%2Fseg6.png?alt=media&amp;token=27d6ee5c-e8c0-433a-b005-9a016e4947f5" alt=""><figcaption></figcaption></figure>

At the end, leave the flow as **“Published”** to trigger the flow in the indicated segment, and click **“Save and Close”.**

{% hint style="danger" %}
Attention: after triggering an automation flow, avoid editing it because this may affect the flow's progress.
{% endhint %}


---

# 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/automation-flows/tutorial-videos/how-to-delete-leads-from-comments.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.
