You can release disks that you no longer need. When a disk is released, all the data stored on the disk is released, and billing is stopped. This topic describes how to release a disk by using the ECS console and how to enable or disable the Release Disk with Instance feature.

Prerequisites

  • If important data is stored on a disk, we recommend that you create a snapshot to back up the data. For more information, see Create a snapshot.
  • Before you manually release a disk or enable or disable the Release Disk with Instance feature for a pay-as-you-go data disk, make sure that the disk is in the Unattached state. For more information, see Detach a cloud disk.

Background information

  • If the Delete Automatic Snapshots While Releasing Disk feature is enabled for a disk, the automatic snapshots of this disk are released as well when the disk is released. However, its manual snapshots are not affected. You can disable the Delete Automatic Snapshots While Releasing Disk feature for a disk when you attach the disk. For more information, see Delete automatic snapshots when releasing a disk.
  • You can manually release a disk or enable the Release Disk with Instance feature for the disk. The following table describes the releasing methods that different types of disks support.
    Disk type Subscription Pay-as-you-go
    System disk By default, the Release Disk with Instance feature is enabled for subscription system disks. Subscription system disks can only be released together with instances. By default, the Release Disk with Instance feature is enabled for pay-as-you-go system disks. Pay-as-you-go system disks can only be released together with instances.
    Data disk
    • By default, the Release Disk with Instance feature is enabled for subscription data disks. Subscription data disks can be released together with instances.
    • After subscription data disks are converted to pay-as-you-go data disks, they can be manually released.
    • Pay-as-you-go data disks can be released together with instances. By default, the Release Disk with Instance feature is enabled for all pay-as-you-go data disks, except pay-as-you-go data disks that are separately created. For separately created pay-as-you-go data disks, you need to manually enable the feature.
    • Pay-as-you-go data disks can also be manually released.
  • Consider the following items when you enable or disable the Release Disk with Instance feature for a system disk or a data disk:
    • With the Release Disk with Instance feature enabled, a disk is automatically released at the release of its attached instance.
    • With the Release Disk with Instance feature disabled, a disk is retained as a pay-as-you-go data disk three days after a payment becomes overdue for its attached instance, three days after the instance expires, or when the instance is manually released.
      Note The retained data disk is billed on a pay-as-you-go basis. You can log to the Billing Management console and search for the disk ID to view the consumption details.

Manually release a disk

You can perform the following steps to manually release a pay-as-you-go data disk:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Storage & Snapshots > Disks.
  3. In the top navigation bar, select a region.
  4. Find the disk that you want to release. In the Actions column, click More, and choose Release from the shortcut menu.
  5. In the message that appears, confirm the information and click Confirm Release.

Enable or disable the Release Disk with Instance feature for disks when creating an ECS instance

You can perform the following steps to enable or disable the Release Disk with Instance feature for data disks or the system disk when creating an ECS instance in the ECS console:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. Click Create Instance.
  4. On the Basic Configurations page that appears, scroll down to the Storage section and select or clear Release with Instance for data disks or the system disk.
    For more information about how to create an ECS instance, see Create an instance by using the provided wizard.Release with Instance

Enable or disable the Release Disk with Instance feature for a disk on the Disks page

You can perform the following steps to enable or disable the Release Disk with Instance feature for a pay-as-you-go data disk on the Disks page in the ECS console:

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Storage & Snapshots > Disks.
  3. In the top navigation bar, select a region.
  4. Find the disk for which you want to enable or disable the feature. In the Actions column, click More, and choose Modify Disk Property from the shortcut menu.
  5. In the Modify Disk Property dialog box that appears, select or clear Release Disk with Instance and click OK.
    Release Disk with Instance