tigergraph__delete_node
Delete a single vertex from a TigerGraph graph by its type and ID. This permanently removes the node and any connected edges, enabling data cleanup or removal of obsolete entities.
Instructions
Purpose: Delete a single vertex (node) from the graph by its ID.
When to Use:
Remove a specific vertex from the graph
Clean up obsolete data
Delete test data
Remove entities based on business logic
Important Notes:
Warning: This operation is permanent and cannot be undone
Connected edges will also be deleted (CASCADE behavior)
Verify the vertex exists before deletion if needed
Common Workflows:
Safe delete:
has_node()→delete_node()→ verify withget_node()Bulk delete: Use
delete_nodes()with WHERE clause instead
Tips:
Use has_node() first to verify existence
Consider the impact on connected edges
For multiple deletions, use delete_nodes() for better performance
Related Tools:
delete_nodes: Delete multiple vertices at once
has_node: Check if vertex exists before deletion
get_node: Verify deletion completed
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| vertex_id | Yes | The unique identifier of the vertex to delete | |
| graph_name | No | Name of the graph (uses default if not specified) | |
| vertex_type | Yes | The type of the vertex to delete |