# Automation Flow - Deleting Leads via Tag

## In SprintHub, we have the option to perform bulk deletion of Leads if they have a tag.&#x20;

{% hint style="danger" %}
Attention: when deleting the Lead(s), this action cannot be undone.
{% endhint %}

{% hint style="warning" %}
Leads that have opportunities in pipelines cannot be deleted. It is necessary to delete the opportunities before deleting the Lead.

To delete the opportunities, see this article: [CRM - Deleting Opportunities](https://docs.sprinthub.com/en/topics/general/crm/crm-common-questions/crm-deleting-opportunities)
{% endhint %}

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FvpednhwRBcBnaEKWBSrd%2Fundraw_Throw_away_re_x60k.png?alt=media&#x26;token=47d497d0-270c-4c13-adc5-09ad55e6e60f" alt=""><figcaption></figcaption></figure>

## To create the flow follow these steps:

#### 1 . Enter the “Automation Flows” service;

Or just type in “Find service” and it will already appear.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfQl0s7XjqDzenxwqMZWN3GGC8704n3dyANrOs9_mtMjrpZSSLFIreexIqzPS5YOvYyIz-Bgaj2XBJ6mFjvLuSVkqKowjHJoE4N5E5wtw9iMkmz4amDDjAnag8yGwwbpZGg5kFwE9F7G-USim-Ak94gm0Q?key=eLQP05At8KjDdnrS4zDPtw" alt=""><figcaption></figcaption></figure>

#### 2. Once in Automation Flows, click the “New” button;

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcwtr7Ut_H1KSIH9CTevwPFiMjh5ihyYkSJAhhrgnqk331eeICNY7nQ2tgKY0CANq88MEwomjZQKpk-pYHVacW7viS5DzoH4r5mRYxlsLwgSGh3NH8X2MJp1-bH_OQjkqNcT5eobF5L-W_n8hC8aF7LPebL?key=eLQP05At8KjDdnrS4zDPtw" alt=""><figcaption></figcaption></figure>

#### 3. Enter the information and data for your flow;

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcqylNDFPuh-nlp3dJfCN5o0jWF0oXG9tDLwFL84UGKaKMB0d-mPprt4vqqitFCiW9raW5P0ZFkIFPRb9FQAnC4MOPLFpi6dOqJ2TqdtQu7F8iF0AcJO0gizWMatulzg-4yskw1hWBZwYNqHLLM7WKKNFfW?key=eLQP05At8KjDdnrS4zDPtw" alt=""><figcaption></figcaption></figure>

Optional to add segment and category;

#### 4. Click “Open Builder”;

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXeMmZrTHG2gFyuArNA59NhZGETuf4XmhmgeiLo-I0_3sB0kktmSkSzY3mNRav6CYS-4a_AQw3RXLaJhFj--7nTt8uDS9H_ipUTRVGbopjDfX65zMtFlqDwlB63Lx8ourUarUTy3NbIY2Re0LFCr18BjZXUK?key=eLQP05At8KjDdnrS4zDPtw" alt=""><figcaption></figcaption></figure>

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

5. After that, to activate your flow in “Published?”, enable it to yes and then click “Save” and then “Save and close”.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfCp4hBoF1QnHfGurlk90DgwCXGXg6lyV1CRpIDN994wQjakbCky6IUEcuN1uE66BBypMkPOXZcIHDuGuVkqGyRoxVnu1JOVHiMAad2KIFy5fgXoqCZKbNxRWmb6l5LuvmghERG65P3kqAvYF5tG64HV7Jr?key=eLQP05At8KjDdnrS4zDPtw" alt=""><figcaption></figcaption></figure>

*Done! Your deletion flow will start, and if the leads match the condition, they will be deleted.*&#x20;
