Neo4j 4.3.2 CE Ubuntu - how to DROP a database?

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!


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