All Products
Document Center

Elastic Compute Service:Release an ECS instance

Last Updated:Feb 04, 2024

If you no longer need an Elastic Compute Service (ECS) instance, you can release the instance to prevent unnecessary costs. This topic describes how to release a pay-as-you-go or preemptible instance or an expired subscription instance.


Only pay-as-you-go instances, including preemptible instances and expired subscription instances can be released.

  • After an instance is released, its data is deleted and cannot be recovered. We recommend that you create snapshots to back up data before you release the instance. For more information, see Create a snapshot for a disk.

  • After an instance is released, snapshots and images that were manually created from the instance are not affected.

Background information

  • Unexpired subscription instances cannot be released. Before you can release an unexpired subscription instance, convert the instance into a pay-as-you-go instance. For more information, see Change the billing method of an instance from subscription to pay-as-you-go.

  • You can manually release expired subscription instances. If you do not renew an expired instance within a specific period of time, the instance is automatically released.

  • If a pay-as-you-go instance is not stopped in economical mode, billing for the instance continues until the instance is released.

  • You can enable release protection for a pay-as-you-go instance to prevent irreversible data loss caused by an accidental release operation. For more information, see Enable and disable release protection for ECS instances.

  • If the Release Disk with Instance feature is disabled for a disk that is attached to an instance, the disk is automatically converted into a pay-as-you-go data disk and retained when the instance is released. For more information, see Release a disk.

  • To batch release multiple instances, we recommend that you use a public template provided by CloudOps Orchestration Service (OOS). You can create an execution based on the public template and use different methods to specify one or more instances that you want to delete in the execution. For example, you can enter instance IDs. For more information, see Release multiple ECS instances at a time.


You can release pay-as-you-go instances in the ECS console.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Open the Release dialog box for the instances that you want to release.

    • To release a single instance, find the instance and choose icon1 > Instance Status > Release in the Actions column.实例状态

    • To batch release multiple instances, click the Filter icon at the top of the Billing Method column and select Pay-as-you-go from the drop-down list. In the displayed list of pay-as-you-go instances, select the instances that you want to release and choose image > Release below the instance list.释放设置

  5. Release the instances immediately or on a schedule.

    1. In the Release dialog box, set the Release Settings parameter and click Next.

      • Release Now: If you select Release Now and confirm the release operation, the system immediately releases the instances and stops billing for the instances.

      • Release on Schedule: If you select Release on Schedule and specify a point in time at which to release the instances, the system releases the instances at the specified point in time and stops billing for them since then.

    2. Confirm the associated resources that you want to release or retain, select I am aware of the instances and their associated resources to be released and understand the data risks, and then click OK.

    3. Confirm the release results and click Close.

    After you schedule the release time of an instance, you can click Cancel in the Billing Method column corresponding to the instance to cancel the release settings.