Is there any API to reset the Confd running db?

Can i use the API “maapi_delete_all()” for reset all the configuration present in running db ?

maapi_delete_all() will not just “reset” the config. It will delete all config.
So to “reset” the config you likely have some initialization config that you want to reset to.
For example, if you are running one of the ConfD examples you probably want to reset the config but keep the AAA config, e.g. user privleges. So then you might as well use maapi_load_config() of the aaa_init.xml file with the MAAPI_CONFIG_REPLACE flag.

Demo using the confd_load tool that use MAAPI to load replace the current config with the config in the aaa_init.xml file.

$ confd_load -dd -r -l confd-cdb/aaa_init.xml 
TRACE Connected (maapi) to ConfD
starting user session ctxt=system user=system groups=[system]
TRACE MAAPI_START_USER_SESSION  --> CONFD_OK
TRACE MAAPI_START_TRANS  --> CONFD_OK
TRACE MAAPI_LOAD_CONFIG_FILE  --> CONFD_OK
TRACE MAAPI_APPLY_TRANS  --> CONFD_OK
TRACE MAAPI_END_USER_SESSION  --> CONFD_OK

Thanks , it helped…!