Skip to content

How do you drop vertexes? #1094

Closed Answered by lvca
ZachMurray asked this question in Q&A
May 22, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Are you looking to drop only vertices, or also edges? Or rather the entire database?

About the transaction, you could use a lambda function like this:

remoteDatabase.transaction( ()->{
  remoteDatabase.command( "gremlin", "g.V().drop" );
} );

Or if you want to drop the entire database from a remote database API, you could do:

remoteDatabase.drop();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZachMurray
Comment options

Answer selected by ZachMurray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants