DELETE all edges in or out of a VERTEX

To delete edges to and from a vertex, ODB already supports:

DELETE EDGE edgeClass FROM (SELECT FROM vertexClass...)  // deletes all edges out of the vertex SELECT result set
and
DELETE EDGE edgeClass TO (SELECT FROM vertexClass...)  // deletes all edges in to the vertex SELECT result set

But why not something like this?

DELETE EDGE edgeClass BOTH (SELECT FROM vertexClass...)

Or is there some other way of doing deleting all edges in and out of a particular vertex (or set of vertexes), other than executing both the FROM and TO DELETEs?

Hi,
try this:

DELETE EDGE edgeClass WHERE @rid IN (SELECT bothE("edgeClass") FROM vertexClass WHERE @rid = <vertex-rid>)

Hope it helps

Regards,
Michela

@mbonizzi - Beautiful! Works perfectly. Thank you!