code: public MockServerClient clear(HttpRequest httpRequest, ClearType type) {
          sendRequest(request().withMethod("PUT").withPath(calculatePath("clear")).withQueryStringParameter("type", type.name().toLowerCase()).withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8));
          return clientClass.cast(this);
      }
docs: Clear expectations, logs or both that match the http
  
  @param httpRequest the http request that is matched against when deciding whether to clear each expectation if null all expectations are cleared
  @param type        the type to clear, EXPECTATION, LOG or BOTH