# DELETE API not working

**URL:** <https://discuss.elastic.co/t/delete-api-not-working/123691>\
**Category:** Elasticsearch\
**Created:** [March 13, 2018, 7:56am UTC](https://discuss.elastic.co/t/delete-api-not-working/123691 "2018-03-13T07:56:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarunwx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarunwx/32/46431_2.png) [@tarunwx](https://discuss.elastic.co/u/tarunwx)\
**Post date:** [March 13, 2018, 7:56am UTC](https://discuss.elastic.co/t/delete-api-not-working/123691/1 "2018-03-13T07:56:41Z")

</div>

ELASTIC 6.2.2 is behaving very weirdly all of a sudden !!! The index exists and when I am trying to delete it - it says the index doesnt exist !!

**\_GET _cat/indices?v=true&v=true&s=index_**

> health status index uuid pri rep docs.count docs.deleted store.size pri.store.size  
> yellow open my\_index gAMPwMtoTCmQvKdeTJgRdQ 5 1 0 0 1.1kb 1.1kb

_ **DELETE /my\_index;** _  
{  
"error": {  
"root\_cause": [  
{  
"type": "index\_not\_found\_exception",  
"reason": "no such index",  
"resource.type": "index\_or\_alias",  
"resource.id": "my\_index;",  
"index\_uuid": "_na_",  
"index": "my\_index;"  
}  
],  
"type": "index\_not\_found\_exception",  
"reason": "no such index",  
"resource.type": "index\_or\_alias",  
"resource.id": "my\_index;",  
"index\_uuid": "_na_",  
"index": "my\_index;"  
},  
"status": 404  
}

---

<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:** [March 13, 2018, 8:03am UTC](https://discuss.elastic.co/t/delete-api-not-working/123691/2 "2018-03-13T08:03:16Z")

</div>

> [@tarunwx](#):
>
> DELETE /my\_index;

Why do you have a semi-colon at the end?

---

<div class="post-metadata">

**Author:** ![tarunwx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarunwx/32/46431_2.png) [@tarunwx](https://discuss.elastic.co/u/tarunwx)\
**Post date:** [March 13, 2018, 8:05am UTC](https://discuss.elastic.co/t/delete-api-not-working/123691/3 "2018-03-13T08:05:35Z")

</div>

I am really sorry for that absolute silly mistake !! Thanks & Regards for the help !! You can close this topic !!

---

<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:** [April 10, 2018, 8:05am UTC](https://discuss.elastic.co/t/delete-api-not-working/123691/4 "2018-04-10T08:05:42Z")

</div>

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