treedb_delete_topic()

treedb_delete_topic()#

Deletes a topic from the TreeDB identified by treedb_name. The topic and all its associated data will be permanently removed.

Prototype

int treedb_delete_topic(
    json_t  *tranger,
    const char  *treedb_name,
    const char  *topic_name
);

Parameters

Key

Type

Description

tranger

json_t *

Pointer to the tranger database instance.

treedb_name

const char *

Name of the TreeDB from which the topic will be deleted.

topic_name

const char *

Name of the topic to be deleted.


Return Value

Returns 0 on success, or a negative error code if the operation fails.

Notes

Ensure that the topic does not contain critical data before calling treedb_delete_topic().

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples