ndio/remote/remote_utils.py
def delete_url(self, url, token=''):
        """
        Returns a delete resquest object taking in a url and user token.

        Arguments:
            url (str): The url to make post to
            token (str): The authentication token

        Returns:
            obj: Delete request object
        """
        if (token == ''):
            token = self._user_token

        return requests.delete(url,
                               headers={
                                   'Authorization': 'Token {}'.format(token)},
                               verify=False,)
def delete_url(self, url, token=''):
        if (token == ''):
            token = self._user_token

        return requests.delete(url,
                               headers={
                                   'Authorization': 'Token {}'.format(token)},
                               verify=False,)
def delete_url ( self , url , token = '' ) : if ( token == '' ) : token = self . _user_token return requests . delete ( url , headers = { 'Authorization' : 'Token {}' . format ( token ) } , verify = False , )
Returns a delete resquest object taking in a url and user token.

        Arguments:
            url (str): The url to make post to
            token (str): The authentication token

        Returns:
            obj: Delete request object
Returns a delete resquest object taking in a url and user token .