cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Neo4j 4.3.2 CE Ubuntu - how to DROP a database?

tim750233
Node Link

I've spent about an hour reading SO and this forum, there is still no clear answer. My import failed and database became corrupted, it wouldn't restart. I need to 1create a CLEAN EMPTY "neo4j" DB, as if it was just installed, given that the DB is currently broken.

  • Simply deleting everything in /var/lib/neo4j/data/databases/neo4j doesn't work (error on start).
  • CREATE doesn't work in CE.
  • DROP gives an error (Unsupported administration command: DROP DATABASE neo4j DESTROY DATA).

I cannot believe there is no clean way to do this in such a mature and popular product. I must be missing something... Any advice or link would be appreciated. Thank you!

1 ACCEPTED SOLUTION

dana_canzano
Neo4j
Neo4j

@tim750233

you could simply stop Neo4j, delete everything under /var/lib/neo4j/data/ and restart

View solution in original post

1 REPLY 1

dana_canzano
Neo4j
Neo4j

@tim750233

you could simply stop Neo4j, delete everything under /var/lib/neo4j/data/ and restart