Deletes one or more custom images.
Operation description
Images include system images and custom images. System images cannot be deleted.
If an image that you want to delete is referenced by a cloud computer template, call the DeleteBundles operation to delete the cloud computer template before you delete the image.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DeleteImages |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| ImageId |
array |
Yes |
The image IDs. You can specify 1 to 100 image IDs. |
|
|
string |
No |
The image ID. |
m-gx2x1dhsmusr2**** |
|
| DeleteCascadedBundle |
boolean |
No |
Specifies whether to delete the associated template. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.