How do you drop vertexes? #1094
-
Hi ArcadeDB Discussions! How do you drop all the vertexes from an ArcadeDB? remoteDatabase.begin();
BasicDatabase.TransactionScope txBlock = null;
remoteDatabase.transaction(txBlock);
remoteDatabase.drop();
remoteDatabase.create();
remoteDatabase.commit(); |
Beta Was this translation helpful? Give feedback.
Answered by
lvca
May 22, 2023
Replies: 1 comment 1 reply
-
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(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ZachMurray
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Or if you want to drop the entire database from a remote database API, you could do: