Delete scaling groups

Updated at:
Copy as MD

Delete a scaling group when it is no longer needed to free up your scaling group quota.

When you delete a scaling group, the following happens:

  • All scaling configurations, scaling rules, scaling activities, and scaling requests in the group are also deleted.

  • Instances in the group are removed or released based on how they were added and whether their lifecycle is managed by the group. See Instance handling for details.

  • Scheduled tasks, associated load balancers, and associated ApsaraDB RDS instances are not deleted — they are retained.

Prerequisites

Before you begin, ensure that you have:

Before you delete

Deletion Protection

If Deletion Protection was enabled when the scaling group was created, you cannot delete the group from the Auto Scaling console or by calling an API operation. Disable Deletion Protection first (step 4 of the procedure below).

Instance handling

When a scaling group that contains Elastic Compute Service (ECS) instances or elastic container instances is deleted:

Instance type What happens
Automatically created Removed from the group and released
Manually added — lifecycle managed by the group Removed from the group and released
Manually added — lifecycle NOT managed by the group Removed from the group only (not released)
Warning

If you enabled Enable Release Protection for an ECS instance when you created it and then entrusted its lifecycle to a scaling group, release protection does not apply when the scaling group is deleted. The ECS instance is still forcibly released. To prevent this, enable Deletion Protection on the scaling group. For details, see SetInstancesProtection.

Delete a scaling group

  1. Log on to the Auto Scaling console.

  2. Log on to the Auto Scaling console.

  3. In the left-side navigation pane, click Scaling Groups.

  4. In the top navigation bar, select a region.

  5. Find the scaling group and click menu > Set Deletion Protection Status for Scaling Group in the Actions column.

  6. In the dialog box, check whether Deletion Protection is enabled.

    • If enabled, disable it and click OK.

    • If disabled, click OK.

  7. Find the scaling group and click Delete in the Actions column.

  8. 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, then click OK.

The scaling group enters the Deleting state. After deletion completes, the group no longer appears on the Scaling Groups page.

What's next

To delete a scaling group using the API, see DeleteScalingGroup.