Delete File
POST
/web/v1/files/command/deleteJWT + TurnstileSoft-deletes a file record. The file metadata is marked as deleted but the physical storage object may be retained for a configurable period.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>and Turnstile token. These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
fileBizId | string | Yes | body | Business ID of the file to delete |
Success Response
No Content204
"{null}"Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Not Found404
{
"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.