if (!testGraph.getGraphType().equals("com.thinkaurelius.titan.graphdb.database.StandardTitanGraph")) {
response = doGraphGet(testGraph, "keyindices/vertex");
JSONObject keyIndicesVertexJson = response.getEntity(JSONObject.class);
JSONArray keyIndicesVertexToDelete = keyIndicesVertexJson.optJSONArray(Tokens.RESULTS);
for (int ix = 0; ix < keyIndicesVertexToDelete.length(); ix++) {
this.client.handle(ClientRequest.create().build(createUri("/" + testGraph.getGraphName() + "/keyindices/vertex/" + encode(keyIndicesVertexToDelete.optString(ix))), "DELETE"));
}
response = doGraphGet(testGraph, "keyindices/edge");
JSONObject keyIndicesEdgeJson = response.getEntity(JSONObject.class);
JSONArray keyIndicesEdgeToDelete = keyIndicesEdgeJson.optJSONArray(Tokens.RESULTS);