| Did this page help you? Yes No Tell us about it... |
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. |
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 |
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 |