# Routing\_missing\_exception

**URL:** <https://discuss.elastic.co/t/routing-missing-exception/71272>\
**Category:** Elasticsearch\
**Created:** [January 11, 2017, 6:48pm UTC](https://discuss.elastic.co/t/routing-missing-exception/71272 "2017-01-11T18:48:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhilesh\_Anb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akhilesh_anb/32/4343_2.png) [@Akhilesh\_Anb](https://discuss.elastic.co/u/Akhilesh_Anb)\
**Post date:** [January 11, 2017, 6:48pm UTC](https://discuss.elastic.co/t/routing-missing-exception/71272/1 "2017-01-11T18:48:23Z")

</div>

I'm trying to delete using the query

**DELETE /title\_data/docs\_child/\_query**

It's throwing me an error

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "routing\_missing\_exception",  
> "reason": "routing is required for [title\_data]/[docs\_child]/[\_query]",  
> "index": "title\_data"  
> }  
> ],  
> "type": "routing\_missing\_exception",  
> "reason": "routing is required for [title\_data]/[docs\_child]/[\_query]",  
> "index": "title\_data"  
> },  
> "status": 400  
> }

Can anyone help me how to delete if it is configured with parent-child relationship.

I tried deleting like this

> DELETE /title\_data/docs\_child/\_query  
> {  
> "query": {  
> "has\_parent": {  
> "type": "title\_parent",  
> "query": {  
> "match\_all": {  
> }  
> }  
> }  
> }  
> }

Eventhough i'm getting the same error as mentioned above.

---

<div class="post-metadata">

**Author:** ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)\
**Post date:** [January 11, 2017, 8:00pm UTC](https://discuss.elastic.co/t/routing-missing-exception/71272/2 "2017-01-11T20:00:43Z")

</div>

You need to specify the parent, see [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html#delete-parent](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html#delete-parent)

---

<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 8, 2017, 8:00pm UTC](https://discuss.elastic.co/t/routing-missing-exception/71272/3 "2017-02-08T20:00:47Z")

</div>

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