# How to delete index having special characters in name?

**URL:** <https://discuss.elastic.co/t/how-to-delete-index-having-special-characters-in-name/235060>\
**Category:** Elasticsearch\
**Created:** [May 31, 2020, 11:07am UTC](https://discuss.elastic.co/t/how-to-delete-index-having-special-characters-in-name/235060 "2020-05-31T11:07:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahebub\_Sayyed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahebub_sayyed/32/68237_2.png) [@Mahebub\_Sayyed](https://discuss.elastic.co/u/Mahebub_Sayyed)\
**Post date:** [May 31, 2020, 11:07am UTC](https://discuss.elastic.co/t/how-to-delete-index-having-special-characters-in-name/235060/1 "2020-05-31T11:07:07Z")

</div>

Hi,  
By mistake I have created some indices with special characters in name like "log-%{[message][meta][organization]}-%{[message][proxy][name]}-2020.02.27".  
I tried to delete this index but getting index\_not\_found\_exception.  
Please provide me sample url to delete this type of index.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [June 2, 2020, 5:25am UTC](https://discuss.elastic.co/t/how-to-delete-index-having-special-characters-in-name/235060/2 "2020-06-02T05:25:23Z")

</div>

You will have to use an url encoder for the index name ( i had the same problem already).  
e.g. [https://www.urlencoder.org/](https://www.urlencoder.org/)

than you can simply put that encoded string in your DELETE request e.g.

```auto
DELETE log-%25%7B%5Bmessage%5D%5Bmeta%5D%5Borganization%5D%7D-%25%7B%5Bmessage%5D%5Bproxy%5D%5Bname%5D%7D-2020.02.27

```

---

<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:** [June 30, 2020, 5:25am UTC](https://discuss.elastic.co/t/how-to-delete-index-having-special-characters-in-name/235060/3 "2020-06-30T05:25:30Z")

</div>

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