ndio/remote/resources.py
def delete_token(self,
                     token_name,
                     project_name,
                     dataset_name):
        """
        Delete a token with the given parameters.
        Arguments:
            project_name (str): Project name
            dataset_name (str): Dataset name project is based on
            token_name (str): Token name
            channel_name (str): Channel name project is based on
        Returns:
            bool: True if project deleted, false if not deleted.
        """
        url = self.url() + "/nd/resource/dataset/{}".format(dataset_name)\
            + "/project/{}".format(project_name)\
            + "/token/{}/".format(token_name)
        req = self.remote_utils.delete_url(url)

        if req.status_code is not 204:
            raise RemoteDataUploadError("Could not delete {}".format(req.text))
        if req.content == "" or req.content == b'':
            return True
        else:
            return False
def delete_token(self,
                     token_name,
                     project_name,
                     dataset_name):
        """
        Delete a token with the given parameters.
        Arguments:
            project_name (str): Project name
            dataset_name (str): Dataset name project is based on
            token_name (str): Token name
            channel_name (str): Channel name project is based on
        Returns:
            bool: True if project deleted, false if not deleted.
        """
        url = self.url() + "/nd/resource/dataset/{}".format(dataset_name)\
            + "/project/{}".format(project_name)\
            + "/token/{}/".format(token_name)
        req = self.remote_utils.delete_url(url)

        if req.status_code is not 204:
            raise RemoteDataUploadError("Could not delete {}".format(req.text))
        if req.content == "" or req.content == b'':
            return True
        else:
            return False
Delete a token with the given parameters.
        Arguments:
            project_name (str): Project name
            dataset_name (str): Dataset name project is based on
            token_name (str): Token name
            channel_name (str): Channel name project is based on
        Returns:
            bool: True if project deleted, false if not deleted.