# Need to delete data and Indexes from ES older than 7 days

**URL:** <https://discuss.elastic.co/t/need-to-delete-data-and-indexes-from-es-older-than-7-days/46173>\
**Category:** Elasticsearch\
**Created:** [April 3, 2016, 5:17pm UTC](https://discuss.elastic.co/t/need-to-delete-data-and-indexes-from-es-older-than-7-days/46173 "2016-04-03T17:17:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [April 3, 2016, 5:17pm UTC](https://discuss.elastic.co/t/need-to-delete-data-and-indexes-from-es-older-than-7-days/46173/1 "2016-04-03T17:17:51Z")

</div>

I have many indexes and the size of all those is around 10 GB. The data is around more than 2 weeks older. I need to keep data only for last 7 days.

As per my analysis, one way is to use  
DELETE - [http://myserver:9200/filebeat-2016.03.25](http://myserver:9200/filebeat-2016.03.25)  
DELETE - [http://myserver:9200/filebeat-2016.02.25](http://myserver:9200/filebeat-2016.02.25)  
DELETE - [http://myserver:9200/filebeat-2016.01.25](http://myserver:9200/filebeat-2016.01.25), etc.

Other is to use CURATOR. Couldn't find anything for windows here. i.e. How to install, command lines, etc.

Can anyone let me know which one should I use and how to implement it using best practices ?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [April 3, 2016, 6:14pm UTC](https://discuss.elastic.co/t/need-to-delete-data-and-indexes-from-es-older-than-7-days/46173/2 "2016-04-03T18:14:31Z")

</div>

[Curator does work in Windows](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/installation.html#windows-binary). The rest of the documentation is available at [https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html)

---

<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:** [July 5, 2017, 11:02pm UTC](https://discuss.elastic.co/t/need-to-delete-data-and-indexes-from-es-older-than-7-days/46173/3 "2017-07-05T23:02:51Z")

</div>


