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.
Declaration Syntax
C# |
DeleteAutoScalingGroupResponse DeleteAutoScalingGroup( DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest )
Parameters
- deleteAutoScalingGroupRequest (DeleteAutoScalingGroupRequest)
- Container for the necessary parameters to execute the DeleteAutoScalingGroup service method on AmazonAutoScaling.
Exceptions
Exception | Condition |
---|---|
ResourceInUseException | |
ScalingActivityInProgressException |