I have a community edition instance where a second database was created somehow and I want to drop it. When I try the DROP
command it gives an error (Unsupported administration command: DROP DATABASE neo4j DESTROY DATA)
. My instance is hosted by a 3rd party so I don't have access to the file system to delete the database that way. In CE how do you drop a database?
If it may or may not exists (to avoid an error if it does not exist):
DROP DATABASE databaseName IF EXISTS
or
If you know it it exists:
DROP DATABASE databaseName