delete_resource
Remove outdated or unnecessary resources from knowledge graphs to maintain data accuracy. This tool deletes resource files and unlinks them from all associated nodes, requiring confirmation to prevent accidental data loss.
Instructions
Delete resources 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 outdated resource files
Clean up unnecessary documents
Remove incorrectly created resources
Usage recommendations:
First call list_graphs to get target graph information
Use get_node_details to confirm resource associations
Confirm deletion won't affect other nodes
Set confirmDelete to true to confirm deletion
Recommended to backup important resources before deletion
Important notes:
Deleting a resource will also delete the physical file
Will automatically unlink from all nodes
This operation cannot be recovered
Return data:
data: Deletion result
id: Deleted resource ID
type: Resource type
deletedAt: Deletion time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graphId | Yes | Graph ID, must be obtained from list_graphs return data | |
| resourceId | Yes | Resource ID, must be obtained from resources array in get_node_details | |
| confirmDelete | Yes | Confirm deletion, must be set to true, this is a safety measure to prevent accidental deletion |