You can call this operation to release one or more pay-as-you-go cloud desktops or expired subscription cloud desktops.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDesktops

The operation that you want to perform. Set the value to DeleteDesktops.

RegionId String Yes cn-hangzhou

The ID of the region where the cloud desktops to release are located.

DesktopId.N RepeatList Yes ecd-gx2x1dhsmucyy****

The IDs of the cloud desktops that you want to release. You can configure one or more desktop IDs. Valid values of N: 1 to 100.

Response parameters

Parameter Type Example Description
RequestId String 8F851208-C0EA-4CDD-9074-DBE70CB430DA

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DeleteDesktops
&DesktopId.1=ecd-gx2x1dhsmucyy****
&<Common request parameters>

Sample success responses

XML format

<DeleteDesktopsResponse>
        <RequestId>8F851208-C0EA-4CDD-9074-DBE70CB430DA</RequestId>
</DeleteDesktopsResponse>

JSON format

{
  "RequestId":"8F851208-C0EA-4CDD-9074-DBE70CB430DA"
}

Error codes

For a list of error codes, visit the API Error Center.