> 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 %}
