Use DeleteActivation with a CLI - AWS Systems Manager

Use DeleteActivation with a CLI

The following code examples show how to use DeleteActivation.

CLI
AWS CLI

To delete a managed instance activation

The following delete-activation example deletes a managed instance activation.

aws ssm delete-activation \ --activation-id "aa673477-d926-42c1-8757-1358cEXAMPLE"

This command produces no output.

For more information, see Setting Up AWS Systems Manager for Hybrid Environments in the AWS Systems Manager User Guide.

PowerShell
Tools for PowerShell

Example 1: This example deletes an activation. There is no output if the command succeeds.

Remove-SSMActivation -ActivationId "08e51e79-1e36-446c-8e63-9458569c1363"
  • For API details, see DeleteActivation in AWS Tools for PowerShell Cmdlet Reference.

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.