Remove node
node_removeDeletes a node and its outgoing links plus links from other nodes, updating the .illugen project in place. Irreversible; copy the file first or use node_set(disabled=true) to bypass it.
Instructions
Deletes a node from the graph, with its outgoing links and every link from other nodes into it.
Writes the project file in place and cannot be undone: copy the file first if you may need the node back.
To bypass a node without losing it, use node_set(disabled=true) instead.
Returns: removed_links, the number of links from other nodes that pointed to the deleted node.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the .illugen project file. | |
| graph | No | Graph to work in: empty for the top-level graph, or the id or label of a Node_Subgraph node ('outer/inner' for nested subgraphs). | |
| node_id | Yes | Node id as a string (from project_summary or node_add), or the node's label if it is unique. |