You can manually release disks that you no longer need. When a disk is released, all data stored on the disk is also released, and billing for the disk is stopped. By default, disks attached to ECS instances are released together with the instances. You can disable the Release Disk with Instance feature to retain disks. This topic describes how to release a disk from the ECS console and how to enable or disable the Release with Instance feature.

Prerequisites

  • A snapshot of the disk is created to back up important data if the important data is stored on the disk. For more information, see Create a normal snapshot.
  • The disk to be manually released and the pay-as-you-go data disk for which you want to enable or disable the Release Disk with Instance feature are in the Unattached state. For more information, see Detach a data 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 along with the disk. 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.
  • Manual snapshots are not released together with 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. You can disable the feature. By default, the Release Disk with Instance feature is enabled for pay-as-you-go system disks. You can disable the feature.
    Data disk
    • By default, the Release Disk with Instance feature is enabled for subscription data disks. You can disable the feature.
    • 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 their attached instances. By default, the Release Disk with Instance feature is enabled for all pay-as-you-go data disks (except for pay-as-you-go data disks that are separately created). For separately created pay-as-you-go data disks, you must manually enable the feature.
    • Pay-as-you-go data disks can 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 ECS instance.
    • With the Release Disk with Instance feature disabled, a disk is retained as a pay-as-you-go data disk three days after the attached ECS instance expires, three days after a payment becomes overdue for the instance, or when the instance is manually released. Your account must complete real-name verification to ensure that disks can be retained.
      Note The retained data disk is billed on a pay-as-you-go basis. You can log on to the Billing Management console and view the consumption details based on the disk ID.

Manually release a disk

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. Choose More > Release in the Actions column.
  5. In the message that appears, confirm the information and click Confirm Release.

Enable or disable the Release Disk with Instance feature for disks while you create an ECS instance

Perform the following steps to enable or disable the Release Disk with Instance feature for data disks or the system disk when you create 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. In the Basic Configurations step, 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

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. Choose More > Modify Disk Property in the Actions column.
  5. In the Modify Disk Property dialog box that appears, select or clear Release Disk with Instance and click OK.
    Note After you clear Release Disk with Instance, a disk is retained as a pay-as-you-go data disk three days after the attached ECS instance expires, three days after a payment becomes overdue for the instance, or when the instance is manually released.
    Release Disk with Instance