(self, label)
return status
Remove a label from the sketch.

        Args:
            label (str): A string with the label to remove from the sketch.

        Returns:
            bool: A boolean to indicate whether the label was successfully
                  removed from the sketch.
Remove a label from the sketch.
Remove a label from the sketch .
def remove_sketch_label(self, label):
        """Remove a label from the sketch.

        Args:
            label (str): A string with the label to remove from the sketch.

        Returns:
            bool: A boolean to indicate whether the label was successfully
                  removed from the sketch.
        """
        if label not in self.labels:
            logger.error(
                'Unable to remove label [{0:s}], not a label '
                'attached to this sketch.'.format(label))
            return False

        resource_url = '{0:s}/sketches/{1:d}/'.format(
            self.api.api_root, self.id)

        data = {
            'labels': [label],
            'label_action': 'remove',
        }
        response = self.api.session.post(resource_url, json=data)

        status = error.check_return_status(response, logger)
        if not status:
            logger.error('Unable to remove the label from the sketch.')

        return status
def remove_sketch_label ( self , label ) : if label not in self . labels : logger . error ( 'Unable to remove label [{0:s}], not a label ' 'attached to this sketch.' . format ( label ) ) return False resource_url = '{0:s}/sketches/{1:d}/' . format ( self . api . api_root , self . id ) data = { 'labels' : [ label ] , 'label_action' : 'remove' , } response = self . api . session . post ( resource_url , json = data ) status = error . check_return_status ( response , logger ) if not status : logger . error ( 'Unable to remove the label from the sketch.' ) return status