# Delete Indices older than 30 days

**URL:** https://discuss.elastic.co/t/delete-indices-older-than-30-days/96630
**Category:** Elasticsearch
**Created:** [August 10, 2017, 2:31pm UTC](https://discuss.elastic.co/t/delete-indices-older-than-30-days/96630 "2017-08-10T14:31:03Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![waterwalker23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waterwalker23/32/19707_2.png) [@waterwalker23](https://discuss.elastic.co/u/waterwalker23)
#### Post date: [August 11, 2017, 8:12pm UTC](https://discuss.elastic.co/t/delete-indices-older-than-30-days/96630/8 "2017-08-11T20:12:09Z")

</div>

I tried that, but got the same result, then changed to IP and got the following:

```
    `curator_cli --host 10.240.1.130 show_indices --filter_list '{"filtertype":"age","source":"name","timestring":"%Y.%m.%d","unit":"days","unit_count":30}'

```

2017-08-11 14:50:32,593 ERROR Schema error: required key not provided @ data['direction']  
2017-08-11 14:50:32,593 ERROR Schema error: Configuration: filter: Location: singleton, filter #0: {'filtertype': 'age', 'source': 'name', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit\_count': 30}: Bad Value: "(could not determine)", required key not provided @ data['direction']. Check configuration file.  
Configuration: filters: Location: open singleton action "filters": Bad Value: "None", Configuration: filter: Location: singleton, filter #0: {'filtertype': 'age', 'source': 'name', 'timestring': '%Y.%m.%d', 'unit': 'days', 'unit\_count': 30}: Bad Value: "(could not determine)", required key not provided @ data['direction']. Check configuration file.. Check configuration file.

---

_[View the full topic](https://discuss.elastic.co/t/delete-indices-older-than-30-days/96630)._
