Use RemoveTagsFromResource with an Amazon SDK or CLI - Amazon Systems Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Use RemoveTagsFromResource with an Amazon SDK or CLI

The following code examples show how to use RemoveTagsFromResource.

CLI
Amazon 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 Amazon Resources in the Amazon 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"

For a complete list of Amazon SDK developer guides and code examples, see Using Systems Manager with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.