def del_tags(name=None, kwargs=None, call=None, instance_id=None, resource_id=None):
 if (kwargs is None):
  kwargs = {}
 if ('tags' not in kwargs):
  raise SaltCloudSystemExit('A tag or tags must be specified using tags=list,of,tags')
 if ((not name) and ('resource_id' in kwargs)):
  instance_id = kwargs['resource_id']
  del kwargs['resource_id']
 if (not instance_id):
  instance_id = _get_node(name)['instanceId']
 params = {'Action': 'DeleteTags', 'ResourceId.1': instance_id}
 for (idx, tag) in enumerate(kwargs['tags'].split(',')):
  params['Tag.{0}.Key'.format(idx)] = tag
 aws.query(params, setname='tagSet', location=get_location(), provider=get_provider(), opts=__opts__, sigver='4')
 if resource_id:
  return get_tags(resource_id=resource_id)
 else:
  return get_tags(instance_id=instance_id)

def del_tags ( name = None , kwargs = None , call = None , instance_id = None , resource_id = None ) : if ( kwargs is None ) : kwargs = { } if ( 'tags' not in kwargs ) : raise SaltCloudSystemExit ( 'A tag or tags must be specified using tags=list,of,tags' ) if ( ( not name ) and ( 'resource_id' in kwargs ) ) : instance_id = kwargs [ 'resource_id' ] del kwargs [ 'resource_id' ] if ( not instance_id ) : instance_id = _get_node ( name ) [ 'instanceId' ] params = { 'Action' : 'DeleteTags' , 'ResourceId.1' : instance_id } for ( idx , tag ) in enumerate ( kwargs [ 'tags' ] . split ( ',' ) ) : params [ 'Tag.{0}.Key' . format ( idx ) ] = tag aws . query ( params , setname = 'tagSet' , location = get_location ( ) , provider = get_provider ( ) , opts = __opts__ , sigver = '4' ) if resource_id : return get_tags ( resource_id = resource_id ) else : return get_tags ( instance_id = instance_id )
delete tags for a resource .