euca-delete-tags

Deletes the specified tags from the specified resource or resources. If you specify a value for the key, the tag is deleted only if the tag's value matches the one you specified. If you specify the empty string as the value, the tag is deleted only if the tag's value is the empty string.

Syntax

euca-delete-tags  resource_id [resource_id ...] --tag key[=value] [--tag key[=value] ...]

Options

Option Description Required
resource_id ID of the resource you want to tag. Yes
--tag key or key=value Key and optional value of the tag, separated by an equals sign (=). You can enter more than one tag to remove. Yes

Common Options

Option Description
--show-empty-fields Show empty fields as "(nil)".
--region user@region Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints.
-U,--url url URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean.
-I,--access-key-id key_id User's access key ID.
-S,--secret-key secret_key User's secret key.
--security-token token User's security token.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
-h,--help Display the manual page for the command.
--version Display the version of this tool.

Output

This command produces no output.

Examples

The following example specifies the empty string as the value for the tag to delete (notice the equals sign after Owner).

euca-delete-tags snap-4dfg39a --tag "Owner="

The following example deletes the stack tag from two instances, regardless of the values.

euca-delete-tags i-5f4e3d2a i-12345678 --tag stack
x