Skip to content

Delete File

POST/web/v1/files/command/delete JWT + Turnstile

Soft-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

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token
X-Workspace-IdTarget workspace ID

Request Parameters

NameTypeRequiredInDescription
fileBizIdstringRequiredbodyBusiness ID of the file to delete

Success Response

No Content 204
"{null}"

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.

SlaunchX Internal Documentation