Skip to content

Delete Cloud Phone

Request

Release one or more Cloud Phones.

  • Preconditions: the phones must not be mid-transfer and the team must have no unpaid order for them. The phone does not have to be powered off.
  • Effect: the Cloud Phone instance is released immediately. A phone that was never activated is deleted outright; an activated phone is retained as a deactivated record, so it keeps appearing in listings with a deactivated status.
  • Completion: synchronous.
  • Retry: phones are processed one by one and the call aborts on the first failure, so a partially applied batch is possible. Re-read /cloudphone/page before retrying, and retry only the phones that are still active.
Bodyapplication/jsonrequired
idsArray of stringsrequired
curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/delete/batch \
  -H 'Content-Type: application/json' \
  -d '{
    "ids": [
      "1595755686723985"
    ]
  }'

Responses

OK

Bodyapplication/json
codeintegerrequired

Return result code 0:Normal Other codes are exceptions.

msgstring or nullrequired

Error message

requestIdstringrequired

Operation Request ID

Response
{ "code": 0, "msg": null, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }