def delete(self, method, uri, params=None, data=None, headers=None, auth=None, timeout=None,
               allow_redirects=False):
        """
        Delete a resource.
        """
        response = self.request(
            method,
            uri,
            params=params,
            data=data,
            headers=headers,
            auth=auth,
            timeout=timeout,
            allow_redirects=allow_redirects,
        )

        if response.status_code < 200 or response.status_code >= 300:
            raise self.exception(method, uri, response, 'Unable to delete record')

        return response.status_code == 204
def delete ( self , method , uri , params = None , data = None , headers = None , auth = None , timeout = None , allow_redirects = False ) : response = self . request ( method , uri , params = params , data = data , headers = headers , auth = auth , timeout = timeout , allow_redirects = allow_redirects , ) if response . status_code < 200 or response . status_code >= 300 : raise self . exception ( method , uri , response , 'Unable to delete record' ) return response . status_code == 204
Delete a resource.