Use RemoveTagsFromResource with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use RemoveTagsFromResource with a CLI

The following code examples show how to use RemoveTagsFromResource.

CLI
AWS CLI

To remove a tag from a patch baseline

The following remove-tags-from-resource example removes tags from a patch baseline.

aws ssm remove-tags-from-resource \ --resource-type "PatchBaseline" \ --resource-id "pb-0123456789abcdef0" \ --tag-keys "Region"

This command produces no output.

For more information, see Tagging AWS Resources in the AWS General Reference.

PowerShell
Tools for PowerShell

Example 1: This example removes a tag from a maintenance window. There is no output if the command succeeds.

Remove-SSMResourceTag -ResourceId "mw-03eb9db42890fb82d" -ResourceType "MaintenanceWindow" -TagKey "Production"