v10

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-02-05141768.5 KB
Files

Delete a file

Delete a file. This cannot be undone.

delete/v1/files/{file_id}

Path parameters

file_idstring required

The unique identifier of the file.

Example:file_01kfxgjd94fn9stqm414vjb0s8

The unique identifier of the file.

Response

Successful Response

idstring required

The unique identifier of the deleted file.

object'file' required

The object type, which is always 'file'.

deletedtrue required

Whether the file was successfully deleted.

Example response

{
  "deleted": true,
  "id": "file_01kfxgjd94fn9stqm414vjb0s8",
  "object": "file"
}