You can call this operation to delete one or more custom images.

Description

  • Images include system images and custom images. System images cannot be deleted.
  • If an image to delete is used by a desktop bundle, call the DeleteBundles operation to delete the desktop bundle.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteImages

The operation that you want to perform. Set the value to DeleteImages.

ImageId.N RepeatList Yes m-gx2x1dhsmusr2****

The IDs of the images that you want to delete. You can configure one or more image IDs. Valid values of N: 1 to 100.

RegionId String Yes cn-hangzhou

The ID of the region where the images to delete are located.

Response parameters

Parameter Type Example Description
RequestId String 347DCC6C-E592-4C05-B74A-9AA6A0475F41

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DeleteImages
&ImageId.1=m-gx2x1dhsmusr2****
&<Common request parameters>

Sample success responses

XML format

<DeleteImagesResponse>
      <RequestId>347DCC6C-E592-4C05-B74A-9AA6A0475F41</RequestId>
</DeleteImagesResponse>

JSON format

{
  "RequestId":"347DCC6C-E592-4C05-B74A-9AA6A0475F41"
}

Error codes

For a list of error codes, visit the API Error Center.