code: def delete_request(
              self,
              alias,
              uri,
              data=None,
              json=None,
              params=None,
              headers=None,
              allow_redirects=None,
              timeout=None):
          
          session = self._cache.switch(alias)
          data = self._format_data_according_to_header(session, data, headers)
          redir = True if allow_redirects is None else allow_redirects
  
          response = self._delete_request(
              session, uri, data, json, params, headers, redir, timeout)
  
          if isinstance(data, bytes):
              data = data.decode('utf-8')
          logger.info('Delete Request using : alias=%s, uri=%s, data=%s, \
                      headers=%s, allow_redirects=%s ' % (alias, uri, data, headers, redir))
  
          return response
docs: Send a DELETE request on the session object found using the
          given `alias`
  
          ``alias`` that will be used to identify the Session object in the cache
  
          ``uri`` to send the DELETE request to
  
          ``json`` a value that will be json encoded
                 and sent as request data if data is not specified
  
          ``headers`` a dictionary of headers to use with the request
  
          ``allow_redirects`` Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.
  
          ``timeout`` connection timeout