# Updation and deletion of fields from ingest attachment arrays

**URL:** <https://discuss.elastic.co/t/updation-and-deletion-of-fields-from-ingest-attachment-arrays/283619>\
**Category:** Elasticsearch\
**Created:** [September 8, 2021, 7:44am UTC](https://discuss.elastic.co/t/updation-and-deletion-of-fields-from-ingest-attachment-arrays/283619 "2021-09-08T07:44:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reghu\_Shanker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reghu_shanker/32/77664_2.png) [@Reghu\_Shanker](https://discuss.elastic.co/u/Reghu_Shanker)\
**Post date:** [September 8, 2021, 7:44am UTC](https://discuss.elastic.co/t/updation-and-deletion-of-fields-from-ingest-attachment-arrays/283619/1 "2021-09-08T07:44:43Z")

</div>

Hi,

I have documents with multiple attachments in each of them. I am using ingest attachment processor to extract data and store it in elastic search document.

These attachments are stored in ingest attachment arrays. Is there an API through which I can update and delete the elements of this array only?

Do I have to upload all the elements in the array even if I just want to change one element in the attachment array?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 8, 2021, 8:06am UTC](https://discuss.elastic.co/t/updation-and-deletion-of-fields-from-ingest-attachment-arrays/283619/2 "2021-09-08T08:06:01Z")

</div>

If you could index binary documents one by one, that'd be better.

To answer your question, the update API does not support ingest pipeline as far as I remember.  
So you have to send again the whole array.

If you do the text extraction outside elasticsearch, without the ingest pipeline, then you can probably use the update API.

---

<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:** [October 6, 2021, 8:06am UTC](https://discuss.elastic.co/t/updation-and-deletion-of-fields-from-ingest-attachment-arrays/283619/3 "2021-10-06T08:06:09Z")

</div>

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