Beispiel #1
0
// -------------------------------------------------------------------------------------------------
static int HandleDeleteTree
(
    void
)
// -------------------------------------------------------------------------------------------------
{
    le_cfgAdmin_DeleteTree(TreeName);

    return EXIT_SUCCESS;
}
Beispiel #2
0
//--------------------------------------------------------------------------------------------------
LE_SHARED void cfgInstall_Remove
(
    const char* appName
)
//--------------------------------------------------------------------------------------------------
{
    LE_INFO("Removing configuration for application '%s'.", appName);

    // Remove the app configuration from the system tree.
    le_cfg_IteratorRef_t i = le_cfg_CreateWriteTxn("/apps");

    le_cfg_DeleteNode(i, appName);
    le_cfg_CommitTxn(i);

    // Now delete the app specific tree.
    le_cfgAdmin_DeleteTree(appName);
}