docs: public void deleteByQuery(String index, String type) throws IOException {
          logger.debug("deleteByQuery [{}]/[{}]", index, type);
  
          String deleteByQuery = "{\n" +
                  "  \"query\": {\n" +
                  "    \"match_all\": {}\n" +
                  "  }\n" +
                  "}";
  
          Request request = new Request("POST", "/" + index + "/" + type + "/_delete_by_query");
          request.setJsonEntity(deleteByQuery);
          Response restResponse = client.getLowLevelClient().performRequest(request);
          Map<String, Object> response = asMap(restResponse);
          logger.debug("reindex response: {}", response);
      }