Updated on 2025-10-28 GMT+08:00

Deleting an Image

Function

This API is used to delete a custom image.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

DELETE /v1/{project_id}/cloud-phone/images/{image_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

image_id

Yes

String

Specifies the image ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token.

It can be obtained by calling an Identity and Access Management (IAM) API. The value of X-Subject-Token in the response header is the user token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

request_id

String

Specifies the request ID.

error_msg

String

Specifies the error message returned for the task.

error_code

String

Specifies the task error code.

Example Requests

Deleting an image

DELETE https://{CPH Endpoint}/v1/{project_id}/cloud-phone/images/{image_id}

Example Responses

Status code: 200

No Content

{
  "request_id" : "2b49a942417c48528ed89e4b22ae5cdf"
}

Status Codes

Status Code

Description

200

No Content

Error Codes

See Error Codes.