# ES 5.x - delete by query

**URL:** https://discuss.elastic.co/t/es-5-x-delete-by-query/241006
**Category:** Elasticsearch
**Created:** [July 13, 2020, 3:48pm UTC](https://discuss.elastic.co/t/es-5-x-delete-by-query/241006 "2020-07-13T15:48:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![natasha\_adewar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natasha_adewar/32/71964_2.png) [@natasha\_adewar](https://discuss.elastic.co/u/natasha_adewar)
#### Post date: [July 13, 2020, 3:48pm UTC](https://discuss.elastic.co/t/es-5-x-delete-by-query/241006/1 "2020-07-13T15:48:23Z")

</div>

Is anyone running delete by-query cron on large live indexes where insert and update of documents is happening at the same time for ES 5.x?  
How to optimize the performance of this cron ?  
How often should we run these crons ?

---

<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: [August 10, 2020, 4:01pm UTC](https://discuss.elastic.co/t/es-5-x-delete-by-query/241006/2 "2020-08-10T16:01:06Z")

</div>

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