class DeleteAllOperation extends AbstractNeo4JOperation {

    @Override
    public void execute(final Connection connection, final Graph<Node, Edge> graph) throws SQLException {
        for (final Node node : graph.vertexSet()) {

            final StartNext match = match(node.toPath().withId("n").build());

            executeQuery(connection, match.toString() + " DETACH DELETE n");
        }
    }

}