if (testGraph.getFeatures().supportsIndices) {
response = doGraphGet(testGraph, "indices");
JSONObject indicesJson = response.getEntity(JSONObject.class);
JSONArray indicesToDelete = indicesJson.optJSONArray(Tokens.RESULTS);
for (int ix = 0; ix < indicesToDelete.length(); ix++) {
this.client.handle(ClientRequest.create().build(createUri("/" + testGraph.getGraphName() + "/indices/" + indicesToDelete.optJSONObject(ix).optString("name")), "DELETE"));
}
}
// todo: hack around titan inability to drop key indices
if (!testGraph.getGraphType().equals("com.thinkaurelius.titan.graphdb.database.StandardTitanGraph")) {