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

Deleting a Shared Application

Function

This API is used to delete a shared application from the storage directory of shared applications. This function is available only on cloud phones that support shared applications.

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/phones/share-apps

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project 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.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

package_name

Yes

String

Valid package name of the shared application to be deleted. The value contains a maximum of 128 bytes. The package name can contain only uppercase letters, lowercase letters, digits, underscores (), and periods (.). The package name cannot start with a digit or underscore () or end with a period (.). The package name must contain at least one period (.).

server_ids

Yes

Array of strings

Specifies the ID list of cloud phone servers.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

request_id

String

Specifies the unique request ID.

jobs

Array of ServerJob objects

Specifies the task list.

Table 5 ServerJob

Parameter

Type

Description

server_id

String

Specifies the unique ID of a cloud phone server. This parameter is contained in tasks related to cloud phone servers.

job_id

String

Specifies the unique ID of a task.

error_code

String

Specifies the error code.

error_msg

String

Specifies the error message.

Example Requests

Deleting the Mini World from cloud phone servers

DELETE https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones/share-apps

{
  "package_name" : "com.miniteck.miniworld",
  "server_ids" : [ "1234567b8bab40ffb711234cb80d0234", "1678567b8bab40f93711234cb80d0764" ]
}

Example Responses

Status code: 200

OK

{
  "request_id" : "6837531fd3f54550927b930180a706bf",
  "jobs" : [ {
    "server_id" : "1234567b8bab40ffb711234cb80d0234",
    "job_id" : "1564567b8bab40f34711234cb80d0123"
  }, {
    "server_id" : "1678567b8bab40f93711234cb80d0764",
    "job_id" : "1564567b8bab40f34711234cb80d5678"
  } ]
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.