# Delete or update document without document\_id

**URL:** <https://discuss.elastic.co/t/delete-or-update-document-without-document-id/267375>\
**Category:** Logstash\
**Created:** [March 16, 2021, 1:20pm UTC](https://discuss.elastic.co/t/delete-or-update-document-without-document-id/267375 "2021-03-16T13:20:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [March 16, 2021, 3:46pm UTC](https://discuss.elastic.co/t/delete-or-update-document-without-document-id/267375/4 "2021-03-16T15:46:12Z")

</div>

There is an example of connecting to elasticsearch using an http filter [here](https://discuss.elastic.co/t/remove-fields-from-documents-based-on-their-value/200270/7). It is an update rather than update-by-query, but the API documentation explains how to do the latter.

---

_[View the full topic](https://discuss.elastic.co/t/delete-or-update-document-without-document-id/267375)._
