Deletes a file or folder.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /v2/file/delete HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| body | object | No | The request parameters. | |
| drive_id | string | Yes | The drive ID. | 1 |
| file_id | string | Yes | The file ID or folder ID. | 9520943DC264 |
Response parameters
Examples
Sample success responses
JSONformat
{
"domain_id": "bj1",
"drive_id": 1,
"file_id": "9520943DC264",
"async_task_id": "000e89fb-cf8f-11e9-8ab4-b6e980803a3b"
}Error codes
For a list of error codes, visit the Service error codes.
