Skip to main content
Glama

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:

  1. Delete incorrectly created nodes

  2. Delete nodes that are no longer needed

  3. Delete redundant nodes when restructuring the graph

Usage recommendations:

  1. First call list_graphs to get target graph and node information

  2. Use get_node_details to check node's associated resources and relationships

  3. Confirm deletion won't affect other important nodes

  4. Set confirmDelete to true to confirm deletion

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

TableJSON Schema
NameRequiredDescriptionDefault
graphIdYesGraph ID, must be obtained from list_graphs return data
nodeIdYesNode ID, must be obtained from nodes array in list_graphs
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