Method: AWS::EC2::TaggedItem#clear_tags

Defined in:
lib/aws/ec2/tagged_item.rb

#clear_tagsnil

Deletes all tags associated with this EC2 resource.

Returns:

  • (nil)


41
42
43
44
# File 'lib/aws/ec2/tagged_item.rb', line 41

def clear_tags
  client.delete_tags(:resources => [self.id])
  nil
end