public void removeIndex(String name, String region) {
    try {
      QueryService qs = getQueryService();
      qs.removeIndex(qs.getIndex(cache.getRegion(region), name));
    } catch (Exception e) {
      e.printStackTrace();
      throw new RuntimeException(
          "Index removal failed for index: " + name + " on region: " + region, e);
    }
  }
Utility class for testing supported queries
geode-dunit/src/main/java/org/apache/geode/cache/query/QueryTestUtils.java