Skip to content

Instantly share code, notes, and snippets.

@mohataher
Last active October 10, 2023 10:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mohataher/2fefc2c24766d5277d68 to your computer and use it in GitHub Desktop.
Gremlin query to close all management instances in Titan database.
mgmt = graph.openManagement()
it=mgmt.getOpenInstances().iterator(); while (it.hasNext()){ nxt=it.next(); if(!nxt.contains("current"))  mgmt.forceCloseInstance(nxt)}
mgmt.commit()
@apoorv-28
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment