Functions - removeVertex()
This method removes the given vertex from the graph.
Removing Vertices
While you can query graph records in the same manner you would query document records, removing them can sometimes require a number of additional steps to update the connecting records and keep the graph consistent. OrientDB provides special functions for vertices and edges to ensure this update happens when you remove records in a graph.
When removing records in a document database, you can use the standard
delete()
function. To remove an edge, useremoveEdge()
.
Syntax
db.removeVertex(<vertex>)
<vertex>
Defines the vertex you want to remove.