DELETE VERTEX

DELETE VERTEX语句可以删除点,以及点关联的出边和入边。

DELETE VERTEX语句一次可以删除一个或多个点。用户可以结合管道符一起使用,详情请参见管道符

语法

  1. DELETE VERTEX <vid> [, <vid> ...];

示例

  1. nebula> DELETE VERTEX "team1";
  1. # 结合管道符,删除符合条件的点。
  2. nebula> GO FROM "player100" OVER serve WHERE serve.start_year == "2021" YIELD serve._dst AS id | DELETE VERTEX $-.id;

删除过程与删除邻边

Nebula Graph 先找到并删除目标点的所有邻边(出边和入边),然后删除目标点。