# DELETE broken on \_query

**URL:** <https://discuss.elastic.co/t/delete-broken-on--query/20372>\
**Category:** Elasticsearch\
**Created:** [October 22, 2014, 2:34am UTC](https://discuss.elastic.co/t/delete-broken-on--query/20372 "2014-10-22T02:34:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Giagnocavo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_giagnocavo/32/941_2.png) [@Michael\_Giagnocavo](https://discuss.elastic.co/u/Michael_Giagnocavo)\
**Post date:** [October 22, 2014, 2:34am UTC](https://discuss.elastic.co/t/delete-broken-on--query/20372/1 "2014-10-22T02:34:09Z")

</div>

At some point I accidentally POST'd to /myindex/sometype/\_query, and it created an item with an ID of "\_query". I cannot delete it directly with DELETE /myindex/sometype/\_query.

It seems to me that it's a bug to allow data to be POST'd to /myindex/sometype/\_query but not DELETE'd.

Same for entry IDs containing a slash - they do not appear to be usable by including the slash in the URI. Using the NEST client, it seems an ID with an embedded / will end up getting the / encoded to %2F. But if you've already indexed an item with the / (by mapping a field to \_id where the field contains a / literal) then want to go update it, that's a problem.

-Michael

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8e5b52654b434fe2b1ad9b995c9a113b%40CO1PR07MB331.namprd07.prod.outlook.com](https://groups.google.com/d/msgid/elasticsearch/8e5b52654b434fe2b1ad9b995c9a113b%40CO1PR07MB331.namprd07.prod.outlook.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:54am UTC](https://discuss.elastic.co/t/delete-broken-on--query/20372/2 "2017-07-06T00:54:34Z")

</div>


