# Closed all indices by mistake using wildcard \*

**URL:** <https://discuss.elastic.co/t/closed-all-indices-by-mistake-using-wildcard/196244>\
**Category:** Elasticsearch\
**Created:** [August 22, 2019, 6:28am UTC](https://discuss.elastic.co/t/closed-all-indices-by-mistake-using-wildcard/196244 "2019-08-22T06:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lakhwinder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lakhwinder/32/52761_2.png) [@lakhwinder](https://discuss.elastic.co/u/lakhwinder)\
**Post date:** [August 22, 2019, 6:28am UTC](https://discuss.elastic.co/t/closed-all-indices-by-mistake-using-wildcard/196244/1 "2019-08-22T06:28:16Z")

</div>

Hi

I am using Elastic 6.5.3 version.

I closed all the indices by mistake using  
curl -XPOST "[https://localhost:9200/.\*/\_close](https://localhost:9200/.*/_close)"

Now that I am trying to open any of the indices, or even doing a get on \_cat/ or \_snapshot I am getting below error:

{  
"message": "closed: [index\_closed\_exception] closed, with { index\_uuid="06NPlaRhSXmbrY2h8c8H2g" & index=".kibana\_1" }",  
"statusCode": 400,  
"error": "Bad Request"  
}

how do I fix this?

Please help

---

<div class="post-metadata">

**Author:** ![lakhwinder](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lakhwinder/32/52761_2.png) [@lakhwinder](https://discuss.elastic.co/u/lakhwinder)\
**Post date:** [August 22, 2019, 6:48am UTC](https://discuss.elastic.co/t/closed-all-indices-by-mistake-using-wildcard/196244/2 "2019-08-22T06:48:42Z")

</div>

can be closed.. using curl commands, I was actually able to open the indices.

---

<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:** [September 19, 2019, 6:53am UTC](https://discuss.elastic.co/t/closed-all-indices-by-mistake-using-wildcard/196244/3 "2019-09-19T06:53:48Z")

</div>

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