# How do I delete an index called %{foo} in dev tools?

**URL:** <https://discuss.elastic.co/t/how-do-i-delete-an-index-called-foo-in-dev-tools/135457>\
**Category:** Kibana\
**Created:** [June 12, 2018, 5:10am UTC](https://discuss.elastic.co/t/how-do-i-delete-an-index-called-foo-in-dev-tools/135457 "2018-06-12T05:10:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 12, 2018, 5:10am UTC](https://discuss.elastic.co/t/how-do-i-delete-an-index-called-foo-in-dev-tools/135457/1 "2018-06-12T05:10:20Z")

</div>

If I have an index called logstash-whatever-2018.05.21 then I can delete it from dev tools using

```
DELETE logstash-whatever-2018.05.21

```

However, if I have an index called %{foo} then dev tools merges

```
DELETE %{foo}

```

with the previous request, and will not recognize it as a request if it is the first request. How can I delete this index?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 12, 2018, 5:49am UTC](https://discuss.elastic.co/t/how-do-i-delete-an-index-called-foo-in-dev-tools/135457/2 "2018-06-12T05:49:11Z")

</div>

Do you have any other indices with foo in the name? (Check `GET -cat/indices/*foo*`). If not, you should be able to get rid of it by deleting everything with foo in the name: `DELETE *foo*`.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 12, 2018, 6:57pm UTC](https://discuss.elastic.co/t/how-do-i-delete-an-index-called-foo-in-dev-tools/135457/3 "2018-06-12T18:57:12Z")

</div>

It's scary but it works ... DELETE \*foo\* 🙂

---

<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:** [July 10, 2018, 6:57pm UTC](https://discuss.elastic.co/t/how-do-i-delete-an-index-called-foo-in-dev-tools/135457/4 "2018-07-10T18:57:18Z")

</div>

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