# Curator is not deleting the index?

**URL:** <https://discuss.elastic.co/t/curator-is-not-deleting-the-index/100688>\
**Category:** Elasticsearch\
**Created:** [September 15, 2017, 1:01pm UTC](https://discuss.elastic.co/t/curator-is-not-deleting-the-index/100688 "2017-09-15T13:01:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [September 15, 2017, 1:01pm UTC](https://discuss.elastic.co/t/curator-is-not-deleting-the-index/100688/1 "2017-09-15T13:01:52Z")

</div>

Hi Experts,

I have installed curator and I want to delete 1 day old index so with the help of document I have created action.yml file

Action.yml

> ```
> actions:
> 1:
> action: delete_indices
> description: >-
> Delete indices older than 1 days (based on index name), for logstash-
> prefixed indices. Ignore the error if the filter does not result in an
> actionable list of indices (ignore_empty_list) and exit cleanly.
> options:
> ignore_empty_list: True
> disable_action: False
> filters:
> - filtertype: pattern
> kind: prefix
> value: incident-
> - filtertype: age
> source: name
> direction: older
> timestring: '%Y.%m.%d'
> unit: days
> unit_count: 1
> 
> ```

Now when I run

> curator --dry-run /opt/es/poc/action.yml

I see something on the screen

```
2017-09-15 08:32:18,335 INFO Preparing Action ID: 1, "delete_indices"
2017-09-15 08:32:18,344 INFO Trying Action ID: 1, "delete_indices": Delete indices older than 1 days (based on index name), for logstash- prefixed indices. Ignore the error if the filter does not result in an actionable list of indices (ignore_empty_list) and exit cleanly.
2017-09-15 08:32:18,378 INFO DRY-RUN MODE. No changes will be made.
2017-09-15 08:32:18,378 INFO (CLOSED) indices may be shown that may not be acted on by action "delete_indices".
2017-09-15 08:32:18,378 INFO Action ID: 1, "delete_indices" completed.
2017-09-15 08:32:18,378 INFO Job completed.

```

I thought it musthave deleted the index but when I check the index on the elasticsearch I still see index .  
My index name are like

> ```
> incident-2017.37
> incident-2017.09
> 
> ```

so it is weekly Index .37 is the latest one . Can someone suggest what I am doing wrong here ?

Regards  
VG

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [September 15, 2017, 1:09pm UTC](https://discuss.elastic.co/t/curator-is-not-deleting-the-index/100688/2 "2017-09-15T13:09:00Z")

</div>

Never Mind I resolved the issue . I changed the timestring , since I have weekly Indices . So this is what I have done  
timestring: '%Y.%W'

After this things works

Regards  
VG

---

<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:** [October 13, 2017, 1:09pm UTC](https://discuss.elastic.co/t/curator-is-not-deleting-the-index/100688/3 "2017-10-13T13:09:09Z")

</div>

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