# Mongo Output document deletion

**URL:** <https://discuss.elastic.co/t/mongo-output-document-deletion/249693>\
**Category:** Logstash\
**Created:** [September 23, 2020, 6:25pm UTC](https://discuss.elastic.co/t/mongo-output-document-deletion/249693 "2020-09-23T18:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 23, 2020, 6:36pm UTC](https://discuss.elastic.co/t/mongo-output-document-deletion/249693/2 "2020-09-23T18:36:00Z")

</div>

The [code](https://github.com/logstash-plugins/logstash-output-mongodb/blob/c38344c7b25e665be9bcffbb76598db5e8d2a69f/lib/logstash/outputs/mongodb.rb#L106) always calls either insert\_one or insert\_many. I do not see a way to do a deletion.

---

_[View the full topic](https://discuss.elastic.co/t/mongo-output-document-deletion/249693)._
