Delete snapshots

更新时间:
复制 MD 格式

You can delete unneeded snapshots or those that exceed your quota to free up storage space and avoid ongoing charges.

Considerations

  • Deleting a snapshot is an irreversible action. You cannot recover a snapshot or its data after it is deleted. Proceed with caution.

  • Deleting a snapshot does not affect the source cloud disk from which it was created.

  • If a data disk was created from a snapshot, the disk continues to function normally after the snapshot is deleted. However, you can no longer use the Re-initialize data disk operation on the disk.

  • If a custom image was created from a snapshot, you must delete the corresponding custom image before you can delete the snapshot. After the custom image is deleted, existing ECS instances created from that image continue to function normally. However, you can no longer use the Re-initialize system disk (reset OS) operation on those instances.

  • Snapshots are billed on a per-region basis. Deleting a snapshot affects billing only for the current region. To delete all snapshots across all regions, you must switch to each region and delete them individually. You can view all regions that contain snapshots on the ECS overview page. For more information, see View snapshot sizes in all or a single region.

Limitations

You cannot directly delete the following types of snapshots. These snapshots are not automatically deleted upon expiration or when their source cloud disks are released:

Procedure

You can delete snapshots manually, configure snapshots to be automatically deleted upon expiration, or set automatic snapshots to be deleted when their source cloud disks are released.

Manually delete a snapshot

  1. Go to ECS console - Snapshots.

  2. In the top navigation bar, select the region and resource group of the resource that you want to manage. Region

  3. On the Disk Snapshots tab, locate the snapshot that you want to delete and click Delete Snapshot in the Actions column.

  4. In the Delete Snapshot dialog box, follow the on-screen instructions to delete the snapshot.

    No resources

    If the snapshot is not associated with any resources, such as a cloud disk or an image, you can directly delete it.

    1. Select the I understand that snapshots cannot be restored and the snapshot data cannot be retrieved after the snapshots are deleted. checkbox.

    2. Click OK.

    image

    Data disk

    If a data disk has been created from the snapshot, you must forcibly delete the snapshot.

    Important

    After you forcibly delete the snapshot, the data disk created from the snapshot remains usable, but you can no longer re-initialize the cloud disk.

    1. Review the risks of force deletion, select the I am aware of the risks and want to delete the snapshots. checkbox, and then click Next.

      image

    2. Follow the on-screen instructions to complete the deletion.

    Note

    If you no longer need the cloud disk, you can also go to the Disks page to release the cloud disk and then return to the Snapshots page to delete the snapshot.

    Image

    If an image has been created from the snapshot, you must delete the corresponding image before deleting the snapshot.

    Important

    After you delete the custom image, ECS instances that were created from the image continue to function normally. However, you can no longer re-initialize the system disk (reset the OS). For more information about how to delete a custom image, see Delete a custom image.

    Click the Images link to go to the Images page, delete the custom image, and then return to the Snapshots page to delete the snapshot.

    image

Automatic deletion upon expiration

When you manually create a snapshot or create an automatic snapshot policy, you can set a Retention Period for the snapshot. The snapshot is automatically deleted when its retention period ends. For more information about parameter settings, see Manually create a snapshot and Create an automatic snapshot policy.

Important

If Delete Automatic Snapshots While Releasing Disk is enabled for the cloud disk associated with an automatic snapshot, the automatic snapshot is deleted when the cloud disk is released, even if the snapshot's retention period has not ended.

  • Starting three days before a snapshot is scheduled for deletion, a highlighted notification that says Released After {days} Days appears in the Retention Period column of the snapshot list.

    image

  • If you specify a custom retention period in days, you can extend the retention period before the snapshot expires. For more information, see Extend the retention period of a snapshot.

Automatic deletion when a cloud disk is released

If you enable Delete Automatic Snapshots While Releasing Disk, the automatic snapshots of the cloud disk are automatically deleted when the disk is released. A cloud disk can be released in scenarios such as when you manually release the disk, the disk is released with its associated instance, or you replace the system disk. For more information, see Configure automatic snapshots to be deleted when the source disk is released.

Important

If the retention period of an automatic snapshot ends before the associated cloud disk is released, the snapshot is deleted when its retention period ends.