How to delete/create databases in Neo4j?

前端 未结 12 1227
既然无缘
既然无缘 2020-12-12 11:52

Is it possible to create/delete different databases in the graph database Neo4j like in MySQL? Or, at least, how to delete all nodes and relationships of an existing graph t

12条回答
  •  忘掉有多难
    2020-12-12 12:40

    You can just remove the entire graph directory with rm -rf, because Neo4j is not storing anything outside that:

    rm -rf data/*
    

    Also, you can of course iterate through all nodes and delete their relationships and the nodes themselves, but that might be too costly just for testing ...

提交回复
热议问题