AWS SDK for .NET Documentation
DeleteAutoScalingGroup Method (deleteAutoScalingGroupRequest)
Amazon ► Amazon.AutoScaling ► AmazonAutoScaling ► DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest)
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.

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 |

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)