All Products
Search
Document Center

ENS:DeleteImage

Last Updated:Apr 16, 2024

Deletes a custom image.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ImageIdstringYes

The ID of the image. You can specify only one image ID.

You can delete only custom images that you created.

m-5taesrgwpo9zqj9cjqu792****

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The returned service code. A value of 0 indicates that the operation was successful.

0
RequestIdstring

The ID of the request.

0D94920B-0349-5097-A57F-31876405F2E5

Examples

Sample success responses

JSONformat

{
  "Code": 0,
  "RequestId": "0D94920B-0349-5097-A57F-31876405F2E5"
}

Error codes

HTTP status codeError codeError message
400MissingParameterThe input parameters that is mandatory for processing this request is not supplied.
400NoPermissionPermission denied.
400Forbidden.DelerrorteImageThe image cannot be deleted when used by instance.
400Error.DeleteImageThe image cannot be deleted when used by instance.
400Error.DeleteImageThe image is not exist.
400InvalidParameter.%sThe specified field %s invalid. Please check it again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history