Deletes workspaces.

Description

Before you delete a workspace, make sure that the following requirements are met:

  • All cloud desktops in the workspace are released.
  • The data that you want to retain is backed up.
Note After a workspace is deleted, its resources and data cannot be restored. Proceed with caution.

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 DeleteOfficeSites

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

OfficeSiteId.N RepeatList Yes cn-hangzhou+dir-363353****

The ID of workspace N. You can specify one or more workspace IDs.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
RequestId String 5CC5E450-FC43-4F5B-B540-9964BD313427

The ID of the request.

Samples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DeleteOfficeSites
&OfficeSiteId.1=cn-hangzhou+dir-363353****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success response

XML format

<DeleteOfficeSitesResponse>
      <RequestId>5CC5E450-FC43-4F5B-B540-9964BD313427</RequestId>
</DeleteOfficeSitesResponse>

JSON format

{
    "RequestId":"5CC5E450-FC43-4F5B-B540-9964BD313427"
}