code: public StatusCode clear(String sessionId, String listId, boolean confirm) throws MovieDbException {
          TmdbParameters parameters = new TmdbParameters();
          parameters.add(Param.SESSION_ID, sessionId);
          parameters.add(Param.ID, listId);
          parameters.add(Param.CONFIRM, confirm);
  
          URL url = new ApiUrl(apiKey, MethodBase.LIST).subMethod(MethodSub.CLEAR).buildUrl(parameters);
          String webpage = httpTools.postRequest(url, "");
  
          try {
              return MAPPER.readValue(webpage, StatusCode.class);
          } catch (IOException ex) {
              throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to clear list", url, ex);
          }
  
      }
docs: Clear all of the items within a list.
  
  This is a irreversible action and should be treated with caution.
  
  A valid session id is required. A call without confirm=true will return status code 29.
  
  @param sessionId
  @param listId
  @param confirm
  @return
  @throws MovieDbException