# Which method is usually used to age the data in elasticsearch?

**URL:** <https://discuss.elastic.co/t/which-method-is-usually-used-to-age-the-data-in-elasticsearch/164986>\
**Category:** Elasticsearch\
**Created:** [January 21, 2019, 6:57am UTC](https://discuss.elastic.co/t/which-method-is-usually-used-to-age-the-data-in-elasticsearch/164986 "2019-01-21T06:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guisong](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@guisong](https://discuss.elastic.co/u/guisong)\
**Post date:** [January 21, 2019, 6:57am UTC](https://discuss.elastic.co/t/which-method-is-usually-used-to-age-the-data-in-elasticsearch/164986/1 "2019-01-21T06:57:42Z")

</div>

Hello!  
Which method is usually used to age the data in elasticsearch?  
I start a crontab task which run a shell script to call DELETE INDEX API of elasticsearch regularly.elasticsearth lost large data when it is called by script,because it have to deal with requests to delete index.have any method not lost data? or elasticsearch can support to age data?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 21, 2019, 7:28am UTC](https://discuss.elastic.co/t/which-method-is-usually-used-to-age-the-data-in-elasticsearch/164986/2 "2019-01-21T07:28:52Z")

</div>

I would recommend you read [this](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/time-based.html). It covers an older version of Elasticsearch, but this part is still relevent.

---

<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:** [February 18, 2019, 7:28am UTC](https://discuss.elastic.co/t/which-method-is-usually-used-to-age-the-data-in-elasticsearch/164986/3 "2019-02-18T07:28:58Z")

</div>

Closed on February 18, 2019, 7:28am UTC

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