code: public JSONObject deleteObjects(List<String> objects, RequestOptions requestOptions) throws AlgoliaException {
      try {
        JSONArray array = new JSONArray();
        for (String id : objects) {
          JSONObject obj = new JSONObject();
          obj.put("objectID", id);
          JSONObject action = new JSONObject();
          action.put("action", "deleteObject");
          action.put("body", obj);
          array.put(action);
        }
        return batch(array, requestOptions);
      } catch (JSONException e) {
        throw new AlgoliaException(e.getMessage());
      }
    }
docs: Delete several objects
  
  @param objects        the array of objectIDs to delete
  @param requestOptions Options to pass to this request