CmdID / aws / aws secretsmanager
aws secretsmanager untag-resource
Removes specific tags from a secret. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To remove tags from a secret
The following untag-resource example removes two tags from a secret. For each tag, both key and value are removed.
aws secretsmanager untag-resource --secret-id MyTestSecret --tag-keys '[ "FirstTag", "SecondTag"]'Identify--secret-idThe ARN or name of the secret.--tag-keysA list of tag key names to remove from the secret.This command produces no output.
For more information, see Tag secrets in the Secrets Manager User Guide.
Options
--secret-idThe ARN or name of the secret.--tag-keysA list of tag key names to remove from the secret.