All Products
Search
Document Center

Drive and Photo Service:ClearRecyclebin

Last Updated:May 26, 2026

Permanently deletes all files and folders in the recycle bin.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/recyclebin/clear HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

domain_id

string

Yes

body

object

No

The request body.

drive_id

string

Yes

The drive ID.

1

Response elements

Element

Type

Description

Example

object

The response schema.

domain_id

string

The domain ID.

bj1

drive_id

string

The drive ID.

1

async_task_id

string

The asynchronous task ID.

Call the GetAsyncTask operation with this ID to query the task's status.

13ebd3a24dba4166b1527add676ef2866051b4d5dele16

Examples

Success response

JSON format

{
  "domain_id": "bj1",
  "drive_id": "1",
  "async_task_id": "13ebd3a24dba4166b1527add676ef2866051b4d5dele16"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.