# Unable to delete few indicies

**URL:** <https://discuss.elastic.co/t/unable-to-delete-few-indicies/120934>\
**Category:** Elasticsearch\
**Created:** [February 21, 2018, 9:07pm UTC](https://discuss.elastic.co/t/unable-to-delete-few-indicies/120934 "2018-02-21T21:07:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [February 21, 2018, 9:07pm UTC](https://discuss.elastic.co/t/unable-to-delete-few-indicies/120934/1 "2018-02-21T21:07:23Z")

</div>

how do I get rid of these indices?

```
# curl --silent --request GET $ELASTICSEARCH_URI/_cat/indices | grep metadata
green open %{[@metadata][beat]}-2018.02.20 IVbWWsxTRiSDZCNNb8VDAw 5 1 1 0 36.3kb 18.1kb
green open %{[@metadata][beat]}-2018.02.21 av3uixdMTriA83fx1Tuadg 5 1 70 0 1.4mb 784.1kb
green open %{[@metadata][beat]}-%{[@metadata][version]}-2018.02.21 Cbg3LZ_JRa23rkvZgzvyHg 5 1 7 0 202.7kb 101.3kb
# 

```

I tried to follow [Delete Index | Elasticsearch Reference [6.2] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/indices-delete-index.html), but that did not work for me:

```
# curl --verbose --request DELETE 0:9200/_cat/%{[@metadata][beat]}-2018.02.20
curl: (3) [globbing] nested brace in column 15
# 

```

Please advise.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [February 21, 2018, 9:12pm UTC](https://discuss.elastic.co/t/unable-to-delete-few-indicies/120934/2 "2018-02-21T21:12:42Z")

</div>

I was able to figure it out)

```
# curl --verbose --request DELETE $ELASTICSEARCH_URI/%25%7B%5B%40metadata%5D%5Bbeat%5D%7D-2018.02.20?pretty
* Trying 0.0.0.0...
* TCP_NODELAY set
* Connected to 0 (127.0.0.1) port 9200 (#0)
* Server auth using Basic with user 'elastic'
> DELETE /%25%7B%5B%40metadata%5D%5Bbeat%5D%7D-2018.02.20?pretty HTTP/1.1
> Host: 0:9200
> Authorization: Basic ZWxhc3RpYzoxMjgwZjRhN2IzZTVkMTg1ZTNhMjVmNGExMDE2NDg2ZTY3YTZiNTA0
> User-Agent: curl/7.52.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 28
< 
{
  "acknowledged" : true
}
* Curl_http_done: called premature == 0
* Connection #0 to host 0 left intact
#
```

---

<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 21, 2018, 9:13pm UTC](https://discuss.elastic.co/t/unable-to-delete-few-indicies/120934/3 "2018-03-21T21:13:11Z")

</div>

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