All Products
Document Center

CloudOps Orchestration Service:Release multiple ECS instances at a time

Last Updated:Feb 07, 2024

This topic describes how to release multiple Elastic Compute Service (ECS) instances by using CloudOps Orchestration Service (OOS). OOS provides public templates for you to automatically release ECS instances. To automatically release ECS instances, you can create an execution based on a template and specify the IDs of the ECS instances for the execution.


The ECS instances to be released must be pay-as-you-go or subscription instances.


  1. Log on to the OOS console.

  2. In the left-side navigation pane, click Public Templates.

  3. On the Public Templates page, search for the ACS-ECS-BulkyDeleteInstances based on the billing method of the ECS instances to be released. The ACS-ECS-BulkyDeleteInstances template is used to release pay-as-you-go instances. Then, click Create Execution on the destination template card. image

  4. On the Create page, set basic information. Then, click Next Step: Parameter Settings. image

  5. In the Parameter Settings step, set parameters for executing the public template. In this example, the ACS-ECS-BulkyDeleteInstances template is used.





    The ECS instances to be released. You can directly select instances, specify instance tags, specify the resource group of instances, or upload a CSV file that contains instance information.

    test:oos / i-bp10jvphtux8ad******


    Specifies whether to forcibly release the ECS instances.



    Rate Control

    Concurrency-based Control



    Error Threshold



    Optional. The permissions to be used for executing the template.

    • Use Existing Permissions of Current Account: OOS is granted all the permissions of the current account to execute the template. This is the default value. Make sure that you have the permissions to call the ECS API operations that are used to create custom images.

    • Specify RAM Role and Use Permissions Granted to This Role: If a RAM role is specified, OOS assumes the RAM role to perform O&M tasks.

    Use Existing Permissions of Current Account

  6. Click Next: OK. In the OK step, click Confirm and Create.

  7. Go to the Executions page to view the created execution. If the execution status appears as Running, the specified instances are being released.

  8. When the execution status changes to Success, all of the specified instances are released.

  9. Check whether all of the specified instances are released.