Skip to main content
Completely removes a graph and all of its entities (nodes and relationships).

Syntax

Arguments:
  • graph_name - Name of the graph to delete
Returns: String indicating if the operation succeeded or failed.

Examples

Deleting Individual Nodes

Note: To delete specific nodes or relationships (not the entire graph), use the Cypher DELETE clause with a MATCH query:
⚠️ Warning: When you delete a node using the Cypher DELETE clause, all of the node’s incoming and outgoing relationships are also automatically removed.

Frequently Asked Questions

No. GRAPH.DELETE permanently removes the entire graph and all its data. There is no undo. Make sure to back up your data before deleting a graph.
GRAPH.DELETE removes the entire graph key and all its entities. The Cypher DELETE clause within a GRAPH.QUERY removes specific nodes or relationships matched by a pattern.
The delete operation acquires a write lock on the graph. Any queries running against the graph will complete before the deletion proceeds, but new queries will be blocked until the deletion finishes.
All incoming and outgoing relationships connected to the deleted node are automatically removed. You do not need to delete them separately.