(self, name, ontology)
return status
Remove an attribute from the sketch.

        Args:
            name (str): The name of the attribute.
            ontology (str): The ontology (matches with
                /data/ontology.yaml), which defines how the attribute
                is interpreted.

        Raises:
            ValueError: If any of the parameters are of the wrong type.

        Returns:
            Boolean value whether the attribute was successfully
            removed or not.
Remove an attribute from the sketch.
Remove an attribute from the sketch .
def remove_attribute(self, name, ontology):
        """Remove an attribute from the sketch.

        Args:
            name (str): The name of the attribute.
            ontology (str): The ontology (matches with
                /data/ontology.yaml), which defines how the attribute
                is interpreted.

        Raises:
            ValueError: If any of the parameters are of the wrong type.

        Returns:
            Boolean value whether the attribute was successfully
            removed or not.
        """
        if not isinstance(name, str):
            raise ValueError('Name needs to be a string.')

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

        data = {
            'name': name,
            'ontology': ontology,
        }
        response = self.api.session.delete(resource_url, json=data)

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

        return status
def remove_attribute ( self , name , ontology ) : if not isinstance ( name , str ) : raise ValueError ( 'Name needs to be a string.' ) resource_url = '{0:s}/sketches/{1:d}/attribute/' . format ( self . api . api_root , self . id ) data = { 'name' : name , 'ontology' : ontology , } response = self . api . session . delete ( resource_url , json = data ) status = error . check_return_status ( response , logger ) if not status : logger . error ( 'Unable to remove the attribute from the sketch.' ) return status