docs: def delete(self, uri, logon_required=True):
          """
          Perform the HTTP DELETE method against the resource identified by a
          URI.
  
          A set of standard HTTP headers is automatically part of the request.
  
          If the HMC session token is expired, this method re-logs on and retries
          the operation.
  
          Parameters:
  
            uri (:term:`string`):
              Relative URI path of the resource, e.g.
              "/api/session/{session-id}".
              This URI is relative to the base URL of the session (see
              the :attr:`~zhmcclient.Session.base_url` property).
              Must not be `None`.
  
            logon_required (bool):
              Boolean indicating whether the operation requires that the session
              is logged on to the HMC. For example, for the logoff operation, it
              does not make sense to first log on.
  
          Raises:
  
            :exc:`~zhmcclient.HTTPError`
            :exc:`~zhmcclient.ParseError`
            :exc:`~zhmcclient.ClientAuthError`
            :exc:`~zhmcclient.ServerAuthError`
            :exc:`~zhmcclient.ConnectionError`
          """
          if logon_required:
              self.logon()
          url = self.base_url + uri
          self._log_http_request('DELETE', url, headers=self.headers)
          stats = self.time_stats_keeper.get_stats('delete ' + uri)
          stats.begin()
          req = self._session or requests
          req_timeout = (self.retry_timeout_config.connect_timeout,
                         self.retry_timeout_config.read_timeout)
          try:
              result = req.delete(url, headers=self.headers, verify=False,
                                  timeout=req_timeout)
          except requests.exceptions.RequestException as exc:
              _handle_request_exc(exc, self.retry_timeout_config)
          finally:
              stats.end()
          self._log_http_response('DELETE', url,
                                  status=result.status_code,
                                  headers=result.headers,
                                  content=result.content)
  
          if result.status_code in (200, 204):
              return
          elif result.status_code == 403:
              result_object = _result_object(result)
              reason = result_object.get('reason', None)
              if reason == 5:
                  # API session token expired: re-logon and retry
                  self._do_logon()
                  self.delete(uri, logon_required)
                  return
              else:
                  msg = result_object.get('message', None)
                  raise ServerAuthError("HTTP authentication failed: {}".
                                        format(msg), HTTPError(result_object))
          else:
              result_object = _result_object(result)
              raise HTTPError(result_object)