# Still able to delete index with wildcard

**URL:** <https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889>\
**Category:** Elasticsearch\
**Created:** [March 16, 2017, 3:18pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889 "2017-03-16T15:18:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [March 16, 2017, 3:18pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889/1 "2017-03-16T15:18:47Z")

</div>

This is using elasticsearch 2.4 . I added the action.destructive\_requires\_name: true to the yml and did a restart of the cluster. It seems we are still able to do delete using \_all. Is there something I am missing?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [March 16, 2017, 7:13pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889/2 "2017-03-16T19:13:44Z")

</div>

It certainly doesn't look to me like it should work, looking at the code. If you find it works in a modern version of Elasticsearch I'd file an issue.

---

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [March 16, 2017, 7:30pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889/3 "2017-03-16T19:30:21Z")

</div>

according to the docs it should, [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-delete-index.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/indices-delete-index.html)

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [March 16, 2017, 8:07pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889/4 "2017-03-16T20:07:15Z")

</div>

I read that as "unless `action.destructive_requires_name` is set to true, deletes using `_all` or wildcards don't work".

---

<div class="post-metadata">

**Author:** ![kmroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmroz/32/62741_2.png) [@kmroz](https://discuss.elastic.co/u/kmroz)\
**Post date:** [March 27, 2017, 1:41pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889/5 "2017-03-27T13:41:46Z")

</div>

so is there something i should be changing? sorry for the late response as I went on vacation.

---

<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:** [April 24, 2017, 1:41pm UTC](https://discuss.elastic.co/t/still-able-to-delete-index-with-wildcard/78889/6 "2017-04-24T13:41:50Z")

</div>

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