# How can I delete and insert parent document?

**URL:** <https://discuss.elastic.co/t/how-can-i-delete-and-insert-parent-document/292803>\
**Category:** Elasticsearch\
**Created:** [December 23, 2021, 12:50pm UTC](https://discuss.elastic.co/t/how-can-i-delete-and-insert-parent-document/292803 "2021-12-23T12:50:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulan\_Zhenisserov](https://avatars.discourse-cdn.com/v4/letter/u/b9bd4f/32.png) [@Ulan\_Zhenisserov](https://discuss.elastic.co/u/Ulan_Zhenisserov)\
**Post date:** [December 23, 2021, 12:50pm UTC](https://discuss.elastic.co/t/how-can-i-delete-and-insert-parent-document/292803/1 "2021-12-23T12:50:33Z")

</div>

Hi. Can someone help me with this as i want to delete my parent docs in my parent child relationship and insert it again to the index. How will it work? This again inserted parent document will be in the same shard as its child?  
And another case, may I insert child document first, if I know id of future parent document?

Appreciate any help

---

<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:** [January 20, 2022, 12:50pm UTC](https://discuss.elastic.co/t/how-can-i-delete-and-insert-parent-document/292803/2 "2022-01-20T12:50:48Z")

</div>

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