Only pay-as-you-go Elastic Compute Service (ECS) instances (including preemptible instances) and expired subscription instances can be released. This topic describes how to manually and automatically release pay-as-you-go instances.

Prerequisites

After an instance is released, its data cannot be recovered. We recommend that you create a snapshot to back up data before you release the instance. For more information, see Create a snapshot for a disk.
Note After an instance is released, snapshots and images manually created from the instance are not affected.

Background information

  • You can manually release a subscription instance after it expires. If you do not renew the instance after it expires, the instance is automatically released.
  • If the economical mode is disabled for a pay-as-you-go instance, you continue to be charged until the instance is released.
  • You can enable instance release protection for a pay-as-you-go instance to prevent irreversible data loss due to accidental operations during a manual release. For more information, see Enable or disable release protection for ECS instances.
  • If the Release Disk with Instance feature is disabled for a disk 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.

Manually release an instance

You can release a pay-as-you-go instance 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 a region.
  4. Release one or more instances based on your needs.
    • To release a single instance at a time, find the instance that you want to release and choose More > Instance Status > Release in the Actions column. Instance Status
    • To release multiple instances at a time, find the pay-as-you-go instances based on the Billing Method, select the instances that you want to release, and then click Release below the instance list. Release
  5. In the Release dialog box, select Release Now.
  6. Click Next. Then, click OK.

Enable automatic release

You can enable the automatic release feature and set a time to automatically release an instance. If you set the automatic release time multiple times, the most recent setting prevails.

  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 a region.
  4. Configure the release.
    • To release a single instance at a time, find the instance that you want to release and choose More > Instance Status > Release in the Actions column.
    • To release multiple instances at a time, find the pay-as-you-go instances based on the Billing Method, select the instances that you want to release, and then click Release below the instance list.
  5. In the Release dialog box, select Scheduled Release.
  6. Turn on Automatic Release and specify the release date and time.
    Note The automatic release time must be at least 30 minutes later than the current time and accurate to minutes.
    Turn on Automatic Release
  7. Click Next. Then, click OK.

Disable automatic release

  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 a region.
  4. Disable the automatic release feature.
    • To disable the automatic release feature for a single instance at a time, find the instance that you want to release and choose More > Instance Status > Release in the Actions column.
    • To disable the automatic release feature for multiple instances at a time, find the pay-as-you-go instances based on the Billing Method, select the instances that you want to release, and then click Release below the instance list.
  5. In the Release dialog box, select Scheduled Release.
  6. Turn off Automatic Release.
  7. Click Next. Then, click OK.