Delete a custom RDS image
Operation description
- You can only delete custom images to which a user belongs.
- If the product line is an image of the RDS cloud computer pool, RDS cloud application, and RDS workstation, make sure that no RDS instances use the image before you delete it.
- The RDS CloudDesktop template references an image. When you delete an image, the template is also deleted.
- If the image contains multiple regions, the images in all regions are deleted when the image is deleted.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| appstreaming:DeleteImage | none | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ImageId | string | No | The ID of the RDS image. | img-bp13mu**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"Data": true,
"Success": true,
"Code": 200,
"Message": "successful",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InternalError | Internal error. | - |
| 400 | Image.NotExist | The image does not exist. | The image does not exist. |
| 400 | ImageDeleteFailed.NotAllow | The image is not allowed to be deleted. | The image is not allowed to be deleted. |
| 400 | ImageDeleteFailed.NotAllowCommunityParent | The parent image of a community image is not allowed to be deleted. | The parent image of a community image is not allowed to be deleted. |
| 400 | ImageDeleteFailed.NotAllowSharedImage | The shared image is not allowed to be deleted. | The shared image is not allowed to be deleted. |
| 400 | ImageNotAllowDelete | The image cannot be deleted, because shared cloud computers already exist. | The image cannot be deleted, because shared cloud computers already exist. |
| 400 | InvalidImageOperation.ImageIsCreating | Failed to operation the image, it is creating. | Failed to operation the image, it is creating. |
| 400 | DeleteTemplate.Failed | Delete template failed. | Failed to delete the template. |
| 400 | QueryTemplate.Failed | Query template failed. | Failed to query the template. |
| 400 | InvalidTemplate.NotFound | Template not found. | The template is not found. |
| 400 | ImageDeleteFailed.HasSharedImage | The shared image is not allowed to be deleted. | The shared image is not allowed to be deleted. |
| 500 | ServiceUnavailable | Service unavailable. Please try again later. | Service unavailable. Please try again later. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2025-10-17 | Add Operation | View Change Details |
