- Site
- Session
- User
- Callback
- Workflow
- File
- Permission
- Upload
- Pin
- Version
- Direct Link
- List filesGET
- List file activitiesGET
- Get file infoGET
- Get thumbnail URLGET
- Update file contentPUT
- Create viewer sessionPUT
- Create filePOST
- Rename filePOST
- Move or copy filesPOST
- Create download URLPOST
- Restore from trash binPOST
- Delete fileDELETE
- Force unlockDELETE
- Patch metadataPATCH
- Mount storage policyPATCH
- Update view settingPATCH
- Share
- VAS
- Group
- WebDAV
Delete file
DELETE
/file
Auth: JWT Optional
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Header Params
X-Cr-Purchase-Ticket
string
optional
Example:
1f63aa26-edc0-40ce-950a-cb4d4323158e
Body Params application/json
uris
array[string]
required
unlink
boolean | null
optional
skip_soft_delete
boolean | null
optional
Examples
{
"uris": [
"cloudreve://my/newfile.docx",
"cloudreve://my/%E6%96%B0%E6%96%87%E4%BB%B6.txt",
"cloudreve://my/%E7%BF%BB%E8%AF%91%E4%BD%9C%E4%B8%9A1.docx"
],
"unlink": false,
"skip_soft_delete": true
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request DELETE '/file' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e' \
--header 'Content-Type: application/json' \
--data-raw '{
"uris": [
"cloudreve://my/newfile.docx",
"cloudreve://my/%E6%96%B0%E6%96%87%E4%BB%B6.txt",
"cloudreve://my/%E7%BF%BB%E8%AF%91%E4%BD%9C%E4%B8%9A1.docx"
],
"unlink": false,
"skip_soft_delete": true
}'
Responses
🟢200Success
application/json
Body
code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
error
string | null
optional
aggregated_error
object | null
optional
Response
.Additional properties
object (Response)
optional
correlation_id
string <uuid> | null
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
"code": 0,
"msg": ""
}
Modified at 2025-06-10 08:31:05