Skip to main content
Version: 2.4.7

tag delete Command

The tag delete command deletes a tag.

Usage

tag delete [--nowait] <tag_name>

Options

OptionDescription
--nowaitExecute asynchronously in the background

Parameters

ParameterDescriptionRequired?Default Value
tag_nameName of tag to delete✔️N/A

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