# Generating XML using cdb\_get\_modifications for delete operation

**URL:** <https://dmap-community.ductus.global/t/generating-xml-using-cdb-get-modifications-for-delete-operation/4285>\
**Category:** CDB and CDB API\
**Created:** [December 13, 2022, 3:44pm UTC](https://dmap-community.ductus.global/t/generating-xml-using-cdb-get-modifications-for-delete-operation/4285 "2022-12-13T15:44:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haripriya](https://avatars.discourse-cdn.com/v4/letter/h/3d9bf3/32.png) [@Haripriya](https://dmap-community.ductus.global/u/Haripriya)\
**Post date:** [December 13, 2022, 3:44pm UTC](https://dmap-community.ductus.global/t/generating-xml-using-cdb-get-modifications-for-delete-operation/4285/1 "2022-12-13T15:44:58Z")

</div>

Hi,

When a list entry is being deleted, how can we use cdb get modifications() to retrieve the deleted children in the entry?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![nabil](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@nabil](https://dmap-community.ductus.global/u/nabil)\
**Post date:** [December 13, 2022, 10:32pm UTC](https://dmap-community.ductus.global/t/generating-xml-using-cdb-get-modifications-for-delete-operation/4285/2 "2022-12-13T22:32:00Z")

</div>

Hello,

To receive information about ancestor list entry or presence container deletion the  
CDB\_GET\_MODS\_WANT\_ANCESTOR\_DELETE flag must also be included in the flags parameter.

> **➜**  **~** man confd\_lib\_cdb

This command will give you more info about the cdb\_get\_modifications() API.

Regards,  
Nabil Michraf
