

def ex_remove_tag_from_asset(self, asset, tag_key):
    '\n        Remove a tag from an asset\n\n        :param asset: The asset to remove a tag from. (required)\n        :type  asset: :class:`Node` or :class:`NodeImage` or\n                      :class:`DimensionDataNewtorkDomain` or\n                      :class:`DimensionDataVlan` or\n                      :class:`DimensionDataPublicIpBlock`\n\n        :param tag_key: The tag key you want to remove (required)\n        :type  tag_key: :class:`DimensionDataTagKey` or ``str``\n\n        :rtype: ``bool``\n        '
    asset_type = self._get_tagging_asset_type(asset)
    tag_key_name = self._tag_key_to_tag_key_name(tag_key)
    apply_tags = ET.Element('removeTags', {
        'xmlns': TYPES_URN,
    })
    ET.SubElement(apply_tags, 'assetType').text = asset_type
    ET.SubElement(apply_tags, 'assetId').text = asset.id
    ET.SubElement(apply_tags, 'tagKeyName').text = tag_key_name
    response = self.connection.request_with_orgId_api_2('tag/removeTags', method='POST', data=ET.tostring(apply_tags)).object
    response_code = findtext(response, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_remove_tag_from_asset/original