# Old indices wont delete

**URL:** https://discuss.elastic.co/t/old-indices-wont-delete/120708
**Category:** Elasticsearch
**Created:** [February 20, 2018, 6:37pm UTC](https://discuss.elastic.co/t/old-indices-wont-delete/120708 "2018-02-20T18:37:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shri](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@shri](https://discuss.elastic.co/u/shri)
#### Post date: [February 20, 2018, 6:37pm UTC](https://discuss.elastic.co/t/old-indices-wont-delete/120708/1 "2018-02-20T18:37:37Z")

</div>

All, i'm trying to delete old indices but can't get it work. Please help me on this issue.

Error:

2018-02-19 21:34:40,977 INFO Preparing Action ID: 1, "delete\_indices"  
2018-02-19 21:34:40,997 INFO Trying Action ID: 1, "delete\_indices": Delete indices older than 30 days (based on index name), for tomcat- prefixed indices. Ignore the error if the filter does not result in an actionable list of indices (ignore\_empty\_list) and exit cleanly.  
2018-02-19 21:34:41,138 INFO Skipping action "delete\_indices" due to empty list: \<class 'curator.exceptions.NoIndices'\>  
2018-02-19 21:34:41,138 INFO Action ID: 1, "delete\_indices" completed.  
2018-02-19 21:34:41,138 INFO Job completed.

My action file:  
actions:  
1:  
action: delete\_indices  
description: \>-  
Delete indices older than 30 days (based on index name), for tomcat-  
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  
timeout\_override:  
continue\_if\_exception: False  
disable\_action: False  
filters:

- filtertype: pattern  
kind: prefix  
value: logstash-  
exclude:
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 1  
exclude: True

My conf.yml

client:  
hosts:

- ${ELK\_HOST}  
port: 9200  
url\_prefix:  
use\_ssl: False  
certificate:  
client\_cert:  
client\_key:  
ssl\_no\_validate: False  
http\_auth:  
timeout: 30  
master\_only: False  
logging:  
loglevel: INFO  
logfile:  
logformat: default  
blacklist: ['elasticsearch', 'urllib3']

When i do df -h

Filesystem Size Used Avail Use% Mounted on  
devtmpfs 3.9G 68K 3.9G 1% /dev  
tmpfs 3.9G 0 3.9G 0% /dev/shm  
/dev/xvda1 7.8G 6.2G 1.6G 80% /  
/dev/xvdf 985G 572G 363G 62% /var/lib/docker  
overlay 985G 572G 363G 62% /var/lib/docker/overlay2/9f13215541c68fb3db4a96e45667554c4958bcc50d2bd5dc228d73610742bfed/merged

---

<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 27, 2018, 1:42am UTC](https://discuss.elastic.co/t/old-indices-wont-delete/120708/2 "2018-02-27T01:42:00Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

---

<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: [March 27, 2018, 1:42am UTC](https://discuss.elastic.co/t/old-indices-wont-delete/120708/3 "2018-03-27T01:42:20Z")

</div>

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