nodes - How to reset / clear / delete neo4j database? -
we can delete nodes , relationships following query.
match (n) optional match (n)-[r]-() delete n,r
but newly created node internal id ({last node internal id} + 1) . doesn't reset zero.
how can reset neo4j database such newly created node id 0?
from 2.3, can delete nodes relationships,
match (n) detach delete n
shut down neo4j server, rm -rf data/graph.db
, start server again. procedure wipes data, handle care.
Comments
Post a Comment