tranger2_delete_topic()#
The tranger2_delete_topic() function deletes a topic from the TimeRanger database, effectively removing all associated records and metadata.
Prototype
int tranger2_delete_topic(
json_t *tranger,
const char *topic_name
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
A pointer to the TimeRanger database instance. |
|
|
The name of the topic to be deleted. |
Return Value
Returns 0 on success, or a negative value if an error occurs.
Notes
Deleting a topic is irreversible. Ensure that the topic is no longer needed before calling tranger2_delete_topic().
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples