Delete File
POST
/web/v1/files/command/delete JWT + TurnstileSoft-deletes a file record. The file metadata is marked as deleted but the physical storage object may be retained for a configurable period.
Required Headers
| Header | Example Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Accept | application/json | Expected response type |
| X-Client-Hash | Client device fingerprint | |
| Accept-Language | en, zh, zh-Hant, ja, vi | Response language (default: en) |
| Authorization | Bearer | JWT access token |
| X-Workspace-Id | Target workspace ID |
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
fileBizId | string | Required | body | Business ID of the file to delete |
Success Response
No Content 204
Error Responses
Unauthorized 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Not Found 404
{
"success": false,
"code": "4040",
"message": "File not found"
}Notes
- This is a soft-delete; the file record is marked as deleted but not physically removed immediately.
- Only the original uploader or authorized operators can delete files.