tag delete
Command
The tag delete
command deletes a tag.
Usage
tag delete [--nowait] <tag_name>
Parameters
Parameter | Description | Required? | Default Value |
---|---|---|---|
tag_name | Name of tag to delete | ✔️ |
Options
Option | Description | Required? |
---|---|---|
--nowait | Execute asynchronously in the background | ❌ |
Examples
Make sure there is no resource that is tagged with 'foo'
> query is(resource) and tags.foo!=null | tag delete foo
kind=aws_ec2_keypair, id=key-0, name=default, age=1yr8mo, cloud=aws, account=eng-sre, region=us-west-2
Manually select the resources to tag by ID
> json["key-0"] | tag delete foo
kind=aws_ec2_keypair, id=key-0, name=default, age=1yr8mo, cloud=aws, account=eng-sre, region=us-west-2