# Calling a pipeline on deletion operations

**URL:** https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116
**Category:** Elasticsearch
**Created:** [June 24, 2019, 12:13pm UTC](https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116 "2019-06-24T12:13:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)
#### Post date: [June 24, 2019, 12:13pm UTC](https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116/1 "2019-06-24T12:13:00Z")

</div>

hello All,

quick question: can we call a pipeline on document deletion?

Thanks!

---

<div class="post-metadata">

### Author: ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)
#### Post date: [June 24, 2019, 12:31pm UTC](https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116/2 "2019-06-24T12:31:17Z")

</div>

found a [post](https://discuss.elastic.co/t/delete-document-in-elastic-in-ingest-based-on-condition/110838/2) regarding that:

> Filebeat and ingest pipeline are data ingestion components and they can't be used to delete documents.

is there still no workaround to do that?  
I change the document ID in the ingest pipeline when indexing documents. So, I'd like to change the document ID in the same way when deleting.  
Any ideas?  
Thanks a lot!

---

<div class="post-metadata">

### Author: ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)
#### Post date: [June 24, 2019, 5:25pm UTC](https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116/3 "2019-06-24T17:25:32Z")

</div>

> [@jetnet](#):
>
> is there still no workaround to do that?

I find it hard that there will ever be any workaround for this. These components are from _ingest layer_ so, as per design, they will always serve to ingest data into the cluster, never delete.

---

<div class="post-metadata">

### Author: ![jetnet](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@jetnet](https://discuss.elastic.co/u/jetnet)
#### Post date: [June 25, 2019, 7:04am UTC](https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116/4 "2019-06-25T07:04:11Z")

</div>

if "per design" is not given by God, then it could be changed, I guess 🙂  
But seriously, it'd be logically, if deletion requests could be manipulated in ES as well.  
Or, am I only the one, who finds that useful?  
Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 23, 2019, 7:04am UTC](https://discuss.elastic.co/t/calling-a-pipeline-on-deletion-operations/187116/5 "2019-07-23T07:04:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
