delete_edge
Remove relationships between nodes in a knowledge graph to correct errors, update structures, or eliminate redundancy. Requires graph and edge identification with confirmation for safety.
Instructions
Delete edges from the knowledge graph. This tool must be used in conjunction with list_graphs and get_node_details tools, and the operation cannot be undone. Use cases:
Delete incorrectly created relationships
Update relationship structure between nodes
Clean up redundant relationships when restructuring the graph
Usage recommendations:
First call list_graphs to get target graph information
Use get_node_details to get edge details
Confirm deletion won't break important relationship structures
Set confirmDelete to true to confirm deletion
Important notes:
Deleting edges won't affect related nodes
Need to call get_node_details again to view updated relationships
Return data:
data: Deletion result
id: Deleted edge ID
deletedAt: Deletion time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | Graph ID, must be obtained from list_graphs return data | |
| edgeId | Yes | Edge ID, must be obtained from relationships array in get_node_details | |
| confirmDelete | Yes | Confirm deletion, must be set to true, this is a safety measure to prevent accidental deletion |