Deletes one or more custom images.
Operation description
You cannot delete an image that is currently in use by an instance group.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ImageIds |
array |
Yes |
The IDs of the images. |
|
|
string |
No |
The ID of the image. |
imgc-kjsdfkjsk**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Data |
object |
The image deletion results. |
|
| SuccessDeleteImageIds |
array |
The IDs of the images that are successfully deleted. |
|
|
string |
The ID of the image that is successfully deleted. |
imgc-jkafjsjk**** |
|
| FailDeleteImageIds |
array |
The IDs of the images that failed to be deleted. |
|
|
string |
The ID of the image that failed to be deleted. |
imgc-sjkdfs8**** |
|
| RequestId |
string |
The request ID. |
4610632D-D661-5982-B3D7-5D3FD183F595 |
Examples
Success response
JSON format
{
"Data": {
"SuccessDeleteImageIds": [
"imgc-jkafjsjk****"
],
"FailDeleteImageIds": [
"imgc-sjkdfs8****"
]
},
"RequestId": "4610632D-D661-5982-B3D7-5D3FD183F595"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.