The following code examples show how to use DeletePolicy
.
- AWS CLI
-
To delete a scaling policy
This example deletes the specified scaling policy.
aws autoscaling delete-policy \ --auto-scaling-group-name
my-asg
\ --policy-namealb1000-target-tracking-scaling-policy
This command produces no output.
-
For API details, see DeletePolicy
in AWS CLI Command 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.