aws ssm delete-association
Disassociates the specified Amazon Web Services Systems Manager document (SSM document) from the specified managed node. AWS CLI reference
2 examples 3 options Its page in the AWS CLI reference
Examples
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 "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify--association-idThe association ID that you want to delete.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"Identify--instance-idThe managed node ID.--nameThe name of the SSM document.This command produces no output.
For more information, see Working with associations in Systems Manager in the AWS Systems Manager User Guide.
Options
--association-idThe association ID that you want to delete.--instance-idThe managed node ID.--nameThe name of the SSM document.