This is the ThingsDB documentation for version v0, click here for the latest version!

del_node

Delete a node from ThingsDB.

Before deleting a node, the node must be offline. As long is the node is active, you are not allowed to delete the node. See shutdown for shutting down a node by using a query.

This function generates an event.

Function

del_node(node_id)

Arguments

Argument Type Description
node_id int (required) Id of the node to delete.

Return value

Returns nil when successful. A lookup_err() is raised if the node Id does not exist.