remove_workspace_nodes
Delete specified nodes from the active ComfyUI workflow canvas. Removes nodes and their connections in one undoable batch, reporting lost links per node. Use bypass mode to preserve wiring instead.
Instructions
Delete nodes from the workflow open in the browser.
The whole batch is one undo step and nothing is removed unless every id
exists. The response reports links_lost per node: deleting a node unwires
everything attached to it, which is not part of what the caller asked for and
cannot be seen from an id alone.
To take a node out of the picture without losing its wiring, prefer set_workspace_node_modes - bypassing passes inputs straight through.
Args: nodes: node ids, from get_workspace_graph. scope: "root" for the whole workflow, "active" for the subgraph on screen. client_id: which tab to edit; defaults to the most recently focused one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodes | Yes | ||
| scope | No | root | |
| client_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||