How do you detach a tag from a vertex in Nebula Graph?

Solution 1:

update 2022-Jan-22: it's supported now

  • in 2.6, deleting tag from a VID(with only one tag) will delete the vertex, too.
  • while after 3.0, bare vertex(without tag) is allowed, thus, delete tag won't delete vertex anymore.
DELETE TAG <tag_name_list> FROM <VID>;

ref:

  • https://docs.nebula-graph.io/2.6.1/3.ngql-guide/10.tag-statements/6.delete-tag/
  • https://docs.nebula-graph.io/master/3.ngql-guide/10.tag-statements/6.delete-tag/

Thank you for the exploration of the nebula graph ;).

As I know, there is no detach tag for now, the mitigation now is only to delete the vertex and insert it with the same vid with only one tag: t1.

An issue was raised here.

BR//Wey