Delete snapshots to free up storage

更新时间:
复制 MD 格式

Delete snapshots manually, on expiration, or on source disk release to free up storage and reduce costs.

Usage notes

  • Deleted snapshots cannot be restored. Proceed with caution.

  • Deleting a snapshot does not affect cloud disks created from it.

  • If you created data disks from a snapshot and then delete the snapshot, the data disks still work but can no longer be re-initialized. See Re-initialize data disk.

  • If you created custom images from a snapshot, you must delete the images before you can delete the snapshot. After deletion, you can no longer use the images to create ECS instances or re-initialize their system disks. See Re-initialize system disk (reset OS).

  • Snapshots are billed per region. You can only delete snapshots in one region at a time. To delete all snapshots across regions, switch between regions and delete them individually. View snapshot availability per region on the View snapshot size page in the ECS console.

Limitations

The following snapshots cannot be deleted manually or automatically:

Procedure

You can delete snapshots manually, configure auto-deletion on expiration, or configure auto-deletion when source disks are released.

Manually delete snapshots

  1. Go to ECS console - Snapshots.

  2. In the upper-left corner of the page, select a region and resource group.地域

  3. On the Disk Snapshots tab, find 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.

    Snapshot not associated with resources

    If the snapshot is not associated with resources such as cloud disks or custom images:

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

    2. Click OK.

    image

    Snapshot from which cloud disks are created

    If you created cloud disks from the snapshot, you can forcefully delete it.

    Important

    After forceful deletion, data disks created from the snapshot still work but can no longer be re-initialized. See Re-initialize a data disk.

    1. Read the notes. If you accept the risks, select I am aware of the risks and want to delete the snapshots. Click Next.

      image

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

    Note

    If you no longer need the cloud disks, release them on the Block Storage page first, then delete the snapshot. See Release a cloud disk.

    Snapshot from which custom images are created

    If you created custom images from the snapshot, delete the images before deleting the snapshot.

    Important

    After deleting the custom images, ECS instances created from them still work, but their system disks can no longer be re-initialized. See Re-initialize system disk (reset OS). To delete custom images, see Delete a custom image.

    Click Images to go to the Custom Images tab. Delete the custom images, then return to the Disk Snapshots tab to delete the snapshot.

    image

Auto-delete snapshots on expiration

When you create a snapshot or an automatic snapshot policy, set the Retention Period parameter. After the retention period ends, the snapshot is automatically deleted. See Manually create a single snapshot and Create an automatic snapshot policy.

Important

If Delete Automatic Snapshots While Releasing Disk is enabled for a cloud disk with automatic snapshots, and the disk is released before the snapshots expire, those snapshots are deleted when the disk is released. If the cloud disk is a system disk, its automatic snapshots are also deleted when the system disk is replaced.

  • If the snapshot expires within three days, Released After xx Days is displayed in the Retention Period column on the Disk Snapshots tab.

    image

  • If you set a retention period in days, you can extend it before the snapshot expires. See Extend snapshot retention.

Auto-delete snapshots on source disk release

If Delete Automatic Snapshots While Releasing Disk is enabled for a cloud disk, its automatic snapshots are deleted when the disk is manually released or automatically released with the ECS instance. If the cloud disk is a system disk, its automatic snapshots are also deleted when the system disk is replaced. See the Enable automatic snapshots to be released with the disk section of the "Configure an automatic snapshot policy for a cloud disk" topic.

Important

If an automatic snapshot's retention period ends before the disk is released, the snapshot is deleted when the retention period ends.