Skip to main content
Version: 4.1.0

tag delete Command

The tag delete command deletes a tag.

Usage

tag delete [--nowait] <tag_name>

Parameters

ParameterDescriptionRequired?Default Value
tag_nameName of tag to delete✔️

Options

OptionDescriptionRequired?
--nowaitExecute 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