delete_connection
Removes a connection between two nodes in an N8N workflow using workflow, source, and target IDs.
Instructions
Delete a connection between two nodes in a workflow
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflowId": "<workflowId>",
"sourceNodeId": "<sourceNodeId>",
"targetNodeId": "<targetNodeId>"
},
"name": "delete_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow ID | |
| sourceNodeId | Yes | Source node ID | |
| targetNodeId | Yes | Target node ID | |
| targetInputIndex | No | Target input index | |
| sourceOutputIndex | No | Source output index |