You can call this operation to delete directories.

Description

You cannot delete directories that are in use by 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 automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteDirectories

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

RegionId String Yes cn-hangzhou

The ID of the region.

DirectoryId.N RepeatList Yes cn-hangzhou+dir-gx2x1dhsmu52rd****

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

Response parameters

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

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=DeleteDirectories
&DirectoryId.1=cn-hangzhou+dir-gx2x1dhsmu52rd****
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

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