Skip to content

Commit

Permalink
Add note clarifying DELETE does not free up disk space (#1025)
Browse files Browse the repository at this point in the history
JPryce-Aklundh authored Aug 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0ab44c1 commit 51304d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/ROOT/pages/clauses/delete.adoc
Original file line number Diff line number Diff line change
@@ -9,7 +9,11 @@ The `DELETE` clause is used to delete nodes, relationships or paths.
For removing properties and labels, see the xref::clauses/remove.adoc[REMOVE] clause.

It is not possible to delete nodes with relationships connected to them without also deleting the relationships.
This can be done by either explicitly deleting specific relationships, or by using the `DETACH DELETE` clause.
This can be done by either explicitly deleting specific relationships, or by using the `DETACH DELETE` clause.

[NOTE]
While the `DELETE` clause renders the deleted objects no longer accessible, the space occupied by the deleted nodes and relationships remain on the disk and is reserved for future transactions creating data.
For information about how to clear and reuse the space occupied by deleted objects, see link:{neo4j-docs-base-uri}/operations-manual/{page-version}/performance/space-reuse/[Operations Manual -> Space reuse].

== Example graph

0 comments on commit 51304d9

Please sign in to comment.