# What is the possible way to delete this index ONLY?

**URL:** <https://discuss.elastic.co/t/what-is-the-possible-way-to-delete-this-index-only/71283>\
**Category:** Elasticsearch\
**Created:** [January 11, 2017, 9:56pm UTC](https://discuss.elastic.co/t/what-is-the-possible-way-to-delete-this-index-only/71283 "2017-01-11T21:56:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chunji08](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@chunji08](https://discuss.elastic.co/u/chunji08)\
**Post date:** [January 11, 2017, 9:56pm UTC](https://discuss.elastic.co/t/what-is-the-possible-way-to-delete-this-index-only/71283/1 "2017-01-11T21:56:38Z")

</div>

Hi there,  
I have created one index by accident =\> "dte-%{jobid}". So currently if I was to check all the indexes by this server, that is what I see now:  
curl -XGET "[http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices) ==\>  
"  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
101 2541 101 2541 0 0 76285 0 --:--:-- --:--:-- --:--:-- 79406  
green open dte-36359429 YYu0kcH4QeajC6QBfyAoIg 5 1 1543198 0 740.1mb 370mb  
green open dte-36503651 Tj0aph4\_Ruq-iTQQrE\_eRw 5 1 146423 0 68.3mb 34.2mb  
green open dte-%{jobid} kG3sh3w5SA6iDGrC3YxAEg 5 1 3066 0 2.3mb 1.2mb  
...  
".  
And if I was to delete that one by this command,  
==\>\> curl -X DELETE "[http://localhost:9200/dte-%{jobid}](http://localhost:9200/dte-%25%7Bjobid%7D)",  
I got this response:  
"  
{"error":{"root\_cause":[{"type":"illegal\_argument\_exception","reason":"invalid escape sequence `%jo' at index 5 of: dte-\\%jobid"}],"type":"illegal_argument_exception","reason":"invalid escape sequence`%jo' at index 5 of: dte-\%jobid"},"status":400}  
"  
Does anyone know what is the possible way to have this removed only ?

Thanks a lot.

Chun

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [January 12, 2017, 2:55am UTC](https://discuss.elastic.co/t/what-is-the-possible-way-to-delete-this-index-only/71283/2 "2017-01-12T02:55:43Z")

</div>

Just percent-encode the URL:

```bash
$ curl -XDELETE localhost:9200/dte-%25%7bjobid%7d?pretty=1

```

---

<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:** [February 9, 2017, 2:56am UTC](https://discuss.elastic.co/t/what-is-the-possible-way-to-delete-this-index-only/71283/3 "2017-02-09T02:56:19Z")

</div>

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