

def remove_tag(self, key, value=None):
    "\n        Remove a tag from this object.  Removing a tag involves a round-trip\n        to the EC2 service.\n\n        :type key: str\n        :param key: The key or name of the tag being stored.\n\n        :type value: str\n        :param value: An optional value that can be stored with the tag.\n                      If a value is provided, it must match the value\n                      currently stored in EC2.  If not, the tag will not\n                      be removed.  If a value of None is provided, all\n                      tags with the specified name will be deleted.\n                      NOTE: There is an important distinction between\n                      a value of '' and a value of None.\n        "
    if value:
        tags = {
            key: value,
        }
    else:
        tags = [key]
    status = self.connection.delete_tags([self.id], tags)
    if (key in self.tags):
        del self.tags[value]

dataset/ETHPy150Open darcyliu/storyboard/boto/ec2/ec2object.py TaggedEC2Object.remove_tag/VarMisuse@79/347 `key`->`value`