As @mvf points out, tailf:cli-delete-when-empty deletes the list entry.
- You seem to be using cdb_get_modifications() to “generate” XML according to the “examples.confd/cdb_subscription/modifications”. You will not get deleted children in a list entry from cdb_get_modifications() when you delete it.
- You have set the default value of “leaf_name” to “true”, so the resulting config will always be “true” (never “false”) when you delete “leaf_name”.