# Delete logs in ElasticSearch after certain period

**URL:** <https://discuss.elastic.co/t/delete-logs-in-elasticsearch-after-certain-period/75067>\
**Category:** Elasticsearch\
**Created:** [February 14, 2017, 3:22pm UTC](https://discuss.elastic.co/t/delete-logs-in-elasticsearch-after-certain-period/75067 "2017-02-14T15:22:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [February 14, 2017, 5:37pm UTC](https://discuss.elastic.co/t/delete-logs-in-elasticsearch-after-certain-period/75067/7 "2017-02-14T17:37:24Z")

</div>

@bob-bza, [Elasticsearch Curator](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html) _is_ the way to automatically delete your older indices.

See the [delete\_indices](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/delete_indices.html) action documentation, and the [example](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/ex_delete_indices.html) for the same action. The rest of the documentation should help with understanding.

---

_[View the full topic](https://discuss.elastic.co/t/delete-logs-in-elasticsearch-after-certain-period/75067)._
