You can delete custom images that are no longer needed.
Usage notes
Before you delete a custom image, take note of the items described in the following table for different operations.
Operation | Item |
Delete a custom image | A custom image cannot be deleted in the following scenarios: The image is being imported. You can go to the Task Logs page in the Elastic Compute Service (ECS) console to cancel the image import task. After the image import task is canceled, you can delete the image. For more information, see Import a custom image. The image is being exported. You can go to the Task Logs page in the ECS console to cancel the image export task. After the image export task is canceled, you can delete the image. For more information, see Export a custom image.
After a custom image is deleted, the following situations occur: The image can no longer be used to create instances. Instances that use the image can still be used and continue to incur charges. The system disks of instances that use the image cannot be re-initialized. For more information, see Re-initialize a system disk.
|
Delete a shared image | Before you can delete a shared image, you must unshare the image. For more information, see Unshare custom images. After a shared image is deleted, the following situations occur: Accounts to which the image was shared cannot query the image by using the ECS console or by calling an API operation. Accounts to which the image was shared cannot use the image to create instances or replace the operating systems (system disks) of instances. For information about how to replace operating systems, see Replace the operating system (system disk) of an instance. Accounts to which the image was shared cannot re-initialize the system disks of instances that use the image. For more information, see Re-initialize a system disk.
|
Delete an image copy | If an image that has been copied is deleted, the image copies are not affected. Note that ongoing image copy tasks can be canceled but cannot be deleted. If the copies of an image are deleted, the image is not affected.
|
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the upper-left corner of the top navigation bar, select a region.
On the Custom Images tab, find the image that you want to delete and click > Delete Image in the Actions column.
You can also select one or more custom images and click Delete Image in the lower part of the tab.
In the Delete Image dialog box, delete the image as instructed.
Important When you import a custom image, a snapshot is created for the image. You can choose whether to retain the snapshot when you delete the image. Deleted snapshots can no longer be used to restore data. Proceed with caution.
You are charged for existing snapshots. To delete snapshots, go to the Snapshots page in the ECS console. For information about how to delete snapshots, see Delete a snapshot. For information about snapshot billing, see Snapshots.
Delete snapshots that were created based on the image
If you want to delete the snapshots together with the image, select Yes in the Delete Snapshots section.
Delete instances that were created based on the image
If the image has been used to create instances, you must select Forcefully Delete Image and determine whether to select Yes in the Delete Snapshots section.