You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Neo4j 2025.04 an additional option was added to the recreate database procedure which clears the data (e.g. nodes and relationships) and the schema (e.g. constraints and indexes) for the database.
364
+
This means you end up with an empty store, but as with the other recreate database options, all privileges associated with the database are kept.
365
+
366
+
When, and only when, the clear data option is used, the store format can also be changed for the recreated database.
367
+
See xref:database-internals/store-formats.adoc[Store formats], for more details about available database store formats in Neo4j.
368
+
If the store format option is not defined, the recreated database ends up with the same store format as before the recreation.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/procedures.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -717,7 +717,7 @@ The procedure initiates a process, which when complete, will have synchronized a
717
717
718
718
[NOTE]
719
719
====
720
-
It is mandatory to specify either `seedURI` or `seedingServers` as seeding options in the `options` field.
720
+
It is mandatory to specify either `seedURI`, `seedingServers` or `clearData` in the `options` field, to define what store(s) the recreation should be based on.
721
721
Further details on how to use the `dbms.recreateDatabase()` procedure are provided in the related section inside the xref:clustering/databases.adoc#recreate-databases[Managing databases in a cluster] page.
722
722
If no topology option is defined, the database will be recreated with the previous topology.
0 commit comments