Auto Scaling
API Reference (API Version 2011-01-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteAutoScalingGroup

Description

Deletes the specified Auto Scaling group if the group has no instances and no scaling activities in progress.

Note

To remove all instances before calling DeleteAutoScalingGroup, you can call UpdateAutoScalingGroup to set the minimum and maximum size of the AutoScalingGroup to zero.

Request Parameters

For information about the common parameters that all actions use, see Common Parameters.

AutoScalingGroupName

The name of the Auto Scaling group.

Type: String

Length constraints: Minimum length of 1. Maximum length of 1600.

Required: Yes

ForceDelete

Starting with API version 2011-01-01, specifies that the Auto Scaling group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated.

Type: Boolean

Required: No

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceInUse

This is returned when you cannot delete a launch configuration or Auto Scaling group because it is being used.

HTTP Status Code: 400

ScalingActivityInProgress

You cannot delete an Auto Scaling group while there are scaling activities in progress for that group.

HTTP Status Code: 400