question

uttkarsh.jain_159863 avatar image
uttkarsh.jain_159863 asked Erick Ramirez edited

How do I remove an edge between two vertices?

We have an edge between two vertices in datastax graph 6.7.4.

How can I remove the edge from the schema itself?

I tried this:

schema.edgeLabel("belongswihin").connection("poi","region").drop()

but there is no drop method to delete an edge like this.

I can't run:

schema.edgeLabel("belongswithin").drop()

as I am having the same edge being used between the other two vertices which I don't want to drop?

graph
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

polandll avatar image
polandll answered

Same answer as I wrote in stackoverflow (https://stackoverflow.com/questions/57267698/how-to-remove-an-edge-between-two-vertices-from-dse-schema):


In DSE Graph, an EdgeLabel can be dropped, but not selectively for a particular connection between two VertexLabels. You don't say which version of DSE you are using, but I'm pretty certain you'll need to drop and rewrite the schema, then load your data again. If you are a DataStax customer, you might want to contact Support to see if there is any assistance they can provide.

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.