code: @Override
    public Delete delete(String pageTitle, String reason) throws Exception {
      Delete result = new Delete();
      String pageContent = getPageContent(pageTitle);
      if (pageContent != null && pageContent.contains(protectionMarker)) {
        LOGGER.log(Level.WARNING, "page " + pageTitle + " is protected!");
      } else {
        TokenResult token = getEditToken(pageTitle, "delete");
        if (token.token == null) {
          throw new IllegalStateException(
              "could not get " + token.tokenMode.toString() + " delete token for "
                  + pageTitle + " ");
        }
        Map<String, String> lFormData = new HashMap<String, String>();
        lFormData.put("title", pageTitle);
        lFormData.put("reason", reason);
        String params = "";
        Api api = this.getActionResult("delete", params, token, lFormData);
        handleError(api);
        result = api.getDelete();
      }
      return result;
    }
docs: https://www.mediawiki.org/wiki/API:Delete/de
  
  @return info