Auto Scaling
API Reference (API Version 2011-01-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid 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]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 Query Parameters.

Name Description Required
AutoScalingGroupName

The name of the Auto Scaling group.

Type: String

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

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

No

Errors

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

Error Description HTTP Status Code
ResourceInUse

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

400
ScalingActivityInProgress

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

400