If you no longer require a scaling group, you can delete the scaling group to free up the scaling group quota.
Usage notes
If you enabled the Deletion Protection feature when you created a scaling group, you cannot delete the scaling group in the Auto Scaling console or by calling an API operation. The Deletion Protection feature helps prevent accidental deletion of scaling groups.
After you delete a scaling group, the scaling configurations, scaling rules, scaling activities, and scaling requests in the scaling group are also deleted. Take note that scheduled tasks, associated load balancers, and associated ApsaraDB RDS instances of the scaling group are retained.
If the scaling group that you want to delete contains Elastic Compute Service (ECS) instances or elastic container instances, the following rules apply:
Instances that are automatically created are removed from the scaling group and then released.
The subsequent actions on instances that are manually added to the scaling group vary based on the management modes of the instances. If the scaling group manages the lifecycles of the instances, the instances are removed from the scaling group and then released. If the scaling group does not manage the lifecycles of the instances, the instances are only removed from the scaling group.
WarningIf you turned on Enable Release Protection for an ECS instance when you created the instance and entrusted the lifecycle of the instance to a scaling group, release protection does not take effect. When you delete the scaling group, the ECS instance is still forcibly released. You can enable the Deletion Protection feature for a scaling group to prevent that instances in the scaling group are forcibly released. For more information, see SetInstancesProtection.
Procedure
Log on to the Auto Scaling console.
In the left-side navigation pane, click Scaling Groups.
In the top navigation bar, select a region.
Find the scaling group that you want to delete and click
> Set Deletion Protection in the Actions column. In the dialog box that appears, check whether the Deletion Protection feature is enabled.
If the Deletion Protection feature is enabled, disable the feature and click OK.
If the Deletion Protection feature is disabled, click OK.
Find the scaling group that you want to delete and click Delete in the Actions column.
In the Delete Scaling Group dialog box, select I am aware of the instances and the associated resources to be released and understand the data risks and click OK.
Then, the scaling group enters the Deleting state. After the scaling group is deleted, the scaling group disappears from the Scaling Groups page.
References
If you want to delete a scaling group by calling an API operation, see DeleteScalingGroup.