There are more AWS SDK examples available in the AWS Doc SDK Examples
Use Untag
with a CLI
The following code examples show how to use Untag
.
- AWS CLI
-
To remove tags from a resource group
The following
untags
example removes any tag with the specified key from the resource group itself, not its members.aws resource-groups untag \ --arn
arn:aws:resource-groups:us-west-2:123456789012:group/tbq-WebServer
\ --keysQueryType
Output:
{ "Arn": "arn:aws:resource-groups:us-west-2:123456789012:group/tbq-WebServer", "Keys": [ "QueryType" ] }
For more information, see Manage tags in the AWS Resource Groups User Guide.
-
For API details, see Untag
in AWS CLI Command Reference.
-