src/sasctl/_services/model_publish.py
def delete_destination(cls, item):
        """Delete a destination instance.

        Parameters
        ----------
        item : str or dict
            Name or dictionary representation of publishing destination.

        Returns
        -------
        None

        """

        # NOTE:  Explicitly defined since service requires destination NAME not
        # ID which is standard.
        item_name = str(item)

        # Try to find the item if the id can't be found
        if not (isinstance(item, dict) and 'id' in item):
            item = cls.get_destination(item)
            if item is None:
                cls.log.info("Object '%s' not found.  Skipping delete.",
                             item_name)
                return

        if isinstance(item, dict) and 'name' in item:
            item = item['name']

        return cls.delete('/destinations/{name}'.format(name=item))
Delete a destination instance.

        Parameters
        ----------
        item : str or dict
            Name or dictionary representation of publishing destination.

        Returns
        -------
        None

        
Delete a destination instance.
Parameters

item : str or dict
Name or dictionary representation of publishing destination.

Returns

None
Delete a destination instance . Parameters item : str or dict Name or dictionary representation of publishing destination . Returns None
def delete_destination(cls, item):
        item_name = str(item)
        if not (isinstance(item, dict) and 'id' in item):
            item = cls.get_destination(item)
            if item is None:
                cls.log.info("Object '%s' not found.  Skipping delete.",
                             item_name)
                return
        if isinstance(item, dict) and 'name' in item:
            item = item['name']
        return cls.delete('/destinations/{name}'.format(name=item))
def delete_destination ( cls , item ) : item_name = str ( item ) if not ( isinstance ( item , dict ) and 'id' in item ) : item = cls . get_destination ( item ) if item is None : cls . log . info ( "Object '%s' not found.  Skipping delete." , item_name ) return if isinstance ( item , dict ) and 'name' in item : item = item [ 'name' ] return cls . delete ( '/destinations/{name}' . format ( name = item ) )
Delete a destination instance.
Delete a destination instance .
"""Delete a destination instance.

        Parameters
        ----------
        item : str or dict
            Name or dictionary representation of publishing destination.

        Returns
        -------
        None

        """ # NOTE:  Explicitly defined since service requires destination NAME not # ID which is standard. # Try to find the item if the id can't be found
cls
item