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).
• Amazon Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see
Amazon Systems Manager Change Manager availability change.
• The Amazon Systems Manager CloudWatch Dashboard will no longer be available after April 30, 2026. Customers can continue to use Amazon CloudWatch console to view, create, and manage their Amazon CloudWatch dashboards, just as they do today. For more information, see
Amazon CloudWatch Dashboard documentation.
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 V4
-
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"
- Tools for PowerShell V5
-
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 this service with an Amazon SDK.
This topic also includes information about getting started and details about previous SDK versions.