AWS 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
AWS Systems Manager Change Manager availability change.
Use DeleteAssociation with a CLI
The following code examples show how to use DeleteAssociation.
- CLI
-
- AWS CLI
-
Example 1: To delete an association using the association ID
The following delete-association example deletes the association for the specified association ID. There is no output if the command succeeds.
aws ssm delete-association \
--association-id "8dfe3659-4309-493a-8755-0123456789ab"
This command produces no output.
For more information, see Editing and creating a new version of an association in the AWS Systems Manager User Guide.
Example 2: To delete an association
The following delete-association example deletes the association between an instance and a document. There is no output if the command succeeds.
aws ssm delete-association \
--instance-id "i-1234567890abcdef0" \
--name "AWS-UpdateSSMAgent"
This command produces no output.
For more information, see Working with associations in Systems Manager in the AWS Systems Manager User Guide.
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example deletes the association between an instance and a document. There is no output if the command succeeds.
Remove-SSMAssociation -InstanceId "i-0cb2b964d3e14fd9f" -Name "AWS-UpdateSSMAgent"
- Tools for PowerShell V5
-
Example 1: This example deletes the association between an instance and a document. There is no output if the command succeeds.
Remove-SSMAssociation -InstanceId "i-0cb2b964d3e14fd9f" -Name "AWS-UpdateSSMAgent"
For a complete list of AWS SDK developer guides and code examples, see
Using this service with an AWS SDK.
This topic also includes information about getting started and details about previous SDK versions.