Updated on 2026-08-27 GMT+08:00

Deleting an Application from the Shared Space

When all cloud phones on a cloud phone server no longer use a shared application, you can delete the shared application from the shared space to release storage space.

Constraints and Limitations

The shared application has been uninstalled from all cloud phones on the cloud phone server.

Example API

DELETE "https://${CPH Endpoint}/v1/${projectId}/cloud-phone/phones/share-apps" 
Header: 
Content-Type: application/json 
X-Auth-Token: ${token}
Body:
{ 
    "package_name": "com.huawei.xxxx", 
    "server_ids": ["1678567b8bab40f937112xxxxx","1234567b8bab40ffb711xxxxx"]
}

package_name indicates the actual package name of the application. server_ids indicates the server ID list. You can specify multiple server IDs.

For details, see Deleting a Shared Application.

  1. Before deleting a shared application from a cloud phone server, the application must have been uninstalled from all cloud phones of the server. Otherwise, the application will fail to be deleted. The API will fail to be invoked and a list of cloud phones where the application is not uninstalled will be returned.
  2. If there are multiple versions of a shared application in the shared space and the application of the earlier version is not installed on any cloud phone, the application of the earlier version will be automatically cleared periodically.