# Deleting only list members

**URL:** <https://dmap-community.ductus.global/t/deleting-only-list-members/4518>\
**Category:** CDB and CDB API\
**Created:** [September 5, 2023, 7:49am UTC](https://dmap-community.ductus.global/t/deleting-only-list-members/4518 "2023-09-05T07:49:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schandrakanth](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@schandrakanth](https://dmap-community.ductus.global/u/schandrakanth)\
**Post date:** [September 5, 2023, 7:49am UTC](https://dmap-community.ductus.global/t/deleting-only-list-members/4518/1 "2023-09-05T07:49:03Z")

</div>

Hi All,

Consider below tree

container

- leaf-1
- leaf-2
- list  
list-leaf-1  
list-leaf-2
- leaf-3
- leaf-4

For this tree on giving “no container” command, all entries are getting deleted as expected. But, my requirement is to recreate entries again in same transaction.

On trying to recreate entries in remove callback confd hangs forever.

is there a way only leaves getting deleted, but not list entry?  
i.e., list can exists as empty.

Regards,  
Chandu

---

<div class="post-metadata">

**Author:** ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)\
**Post date:** [September 5, 2023, 9:15am UTC](https://dmap-community.ductus.global/t/deleting-only-list-members/4518/2 "2023-09-05T09:15:46Z")

</div>

Your maapi call waits for the ongoing transaction to complete, but it doesn’t since your remove callback that issues the maapi call does not complete.  
See [Deadlock - Wikipedia](https://en.wikipedia.org/wiki/Deadlock)
