Files

Delete file

Deletes a batch file or a bound image/reference file. When the request includes anthropic-beta: files-api-2025-04-14, the route uses Anthropic Files API mode for the bound workspace.

delete/v1/files/{file_id}

Request

  • Base URL: https://api.tokenlab.sh
  • URL: https://api.tokenlab.sh/v1/files/{file_id}
  • Auth: HTTP bearer

Path parameters

file_idstring required

File ID returned by the Files API.

Headers

anthropic-betastring

Include files-api-2025-04-14 to use Anthropic Files API mode.

Response

File deleted

OR

Example response

{
  "id": "file-abc123",
  "deleted": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.