Skip to main content
Glama

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:

  1. Delete outdated resource files

  2. Clean up unnecessary documents

  3. Remove incorrectly created resources

Usage recommendations:

  1. First call list_graphs to get target graph information

  2. Use get_node_details to confirm resource associations

  3. Confirm deletion won't affect other nodes

  4. Set confirmDelete to true to confirm deletion

  5. 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

TableJSON Schema
NameRequiredDescriptionDefault
graphIdYesGraph ID, must be obtained from list_graphs return data
resourceIdYesResource ID, must be obtained from resources array in get_node_details
confirmDeleteYesConfirm deletion, must be set to true, this is a safety measure to prevent accidental deletion

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aiuluna/knowledge-graph-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server