delete_node
Remove nodes from knowledge graphs to eliminate incorrect, redundant, or unnecessary data while automatically unlinking associated resources and relationships.
Instructions
Delete nodes from the knowledge graph. This tool must be used in conjunction with list_graphs tool, and the operation cannot be undone. Use cases:
Delete incorrectly created nodes
Delete nodes that are no longer needed
Delete redundant nodes when restructuring the graph
Usage recommendations:
First call list_graphs to get target graph and node information
Use get_node_details to check node's associated resources and relationships
Confirm deletion won't affect other important nodes
Set confirmDelete to true to confirm deletion
Recommended to backup important data before deletion
Important notes:
Deleting a node will also delete all edges related to that node
If the node has associated resources, they won't be deleted but will be unlinked
Return data:
data: Deletion result
id: Deleted node ID
name: Node name
type: Node type
deletedAt: Deletion time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | Graph ID, must be obtained from list_graphs return data | |
| nodeId | Yes | Node ID, must be obtained from nodes array in list_graphs | |
| confirmDelete | Yes | Confirm deletion, must be set to true, this is a safety measure to prevent accidental deletion |