【问题标题】:How can I delete all of the nodes and relationships from the Memgraph database?如何从 Memgraph 数据库中删除所有节点和关系?
【发布时间】:2022-09-22 21:10:37
【问题描述】:

我想从 Memgraph 数据库中删除所有节点和关系。我知道这可以创建一个完整的实例,但我不想这样做。

我可以使用哪个 Cypher 查询来删除 Memgraph 数据库的内容?

    标签: cypher graph-databases memgraphdb


    【解决方案1】:

    要从 Memgraph 数据库中删除所有节点和关系,请使用以下 Cypher 查询:

    MATCH (n)
    DETACH DELETE n;
    

    【讨论】:

      猜你喜欢
      • 2022-11-26
      • 2012-12-24
      • 2019-12-11
      • 1970-01-01
      • 2023-01-30
      • 1970-01-01
      • 1970-01-01
      • 2012-11-29
      • 2011-12-18
      相关资源
      最近更新 更多