I'm using the Neography gem to interact with a Neo4j database through the REST API. I don't see any way in Neography itself (though if it's there, I'd love to use it!), nor have I been able to find by searching on Google whether this is possible directly through the REST API itself. Does anyone out there with Neo4j experience happen to know?
With Neography, you can send this Gremlin script:
@neo = Neography::Rest.new
@neo.execute_script("g.clear()")
to remove all the nodes and relationships.