mgmt = graph.openManagement()
it=mgmt.getOpenInstances().iterator(); while (it.hasNext()){ nxt=it.next(); if(!nxt.contains("current")) mgmt.forceCloseInstance(nxt)}
mgmt.commit()
Gremlin query to close all management instances in Titan database.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks