tigergraph__clear_graph_data
Clears all vertices and edges from a graph while preserving its schema.
Instructions
Clear all data (vertices and edges) from a specific graph while keeping its schema structure intact. This is a destructive operation that removes all graph data.
Use When: • Resetting a graph to empty state • Clearing test data before loading production data • Starting data reload with same schema
Quick Start:
{
"graph_name": "MyGraph",
"confirm": true
}WARNING: • Deletes ALL vertices and edges in the graph • Operation is PERMANENT and cannot be undone • Must set 'confirm': true to execute • Schema (vertex/edge types) remains intact
Tips: • Preserves schema, only clears data • To delete everything including schema, use 'drop_graph' • Always backup important data first • Can specify 'vertex_type' to clear only specific type
Related Tools: drop_graph, get_vertex_count, delete_nodes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be True to confirm the deletion. This is a destructive operation. | |
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| graph_name | No | Name of the graph. If not provided, uses default connection. | |
| vertex_type | No | Type of vertices to clear. If not provided, clears all data. |