# Elasticsearch delete past scroll

**URL:** <https://discuss.elastic.co/t/elasticsearch-delete-past-scroll/174696>\
**Category:** Elasticsearch\
**Created:** [April 1, 2019, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-delete-past-scroll/174696 "2019-04-01T01:42:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [April 1, 2019, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-delete-past-scroll/174696/1 "2019-04-01T01:42:29Z")

</div>

hi 🙂  
I scroll through the entire index by scrolling by 10000 for file output.

But at this time, I have difficulty setting the timeout time. I can not predict how long it will take.  
If i give it a long time (scroll = 1m), the memory pops up.  
For example, elasticsearch with 2Gb memory can not scroll the 10Gb index.

Is there any way to discard the past content as I scroll?

---

<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:** [April 29, 2019, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-delete-past-scroll/174696/2 "2019-04-29T01:42:30Z")

</div>

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