ConfD User Community

Deleting multiple elements using maapi api

maapi_delete takes the keypath of a single element and deletes it.
Is there a way to delete multiple presence containers (or a combination of a presence container and an optional leaf) in a single maapi call ?
[ I’m looking for something on the lines of maapi_load_config_cmds()]

You can use maapi_set_values(), see the confd_lib_maapi(3) man page, the confd_lib_cdb(3) man page for the similar oper data only cdb_set_values() function, and examples.confd/intro/13-c_stats_push/arpstat.c for an example.

1 Like

Thanks… will try it out