How to delete/create databases in Neo4j?

前端 未结 12 1210
既然无缘
既然无缘 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:36

    In Neo4j 2.0.0 the ? is no longer supported. Use OPTIONAL MATCH instead:

    START n=node(*)
    OPTIONAL MATCH (n)-[r]-()
    delete n,r;
    

提交回复
热议问题