Skip to main content

delete_node

Function delete_node 

Source
pub fn delete_node(conn: &Connection, id: &str) -> Result<bool>
Expand description

Delete a node by ID, removing its edges first in the same transaction.

Previously this deleted only the node row and left dangling edges behind — remove_edges_for_node existed but was never called here. The transaction keeps the node deletion and edge cleanup atomic.