v4

latestOpenAPI 3.1.02026-08-0143190206.8 KB
v1

Delete a file by ID. After this returns, the file no longer appears in `GET /v1/files`, content download returns 404, and the ID can no longer be referenced in chat attachments.

delete/v1/files/{file_id}

Path parameters

file_idstring required

The file's id to delete.

Response

Success

deletedboolean required

Whether the file was deleted.

idstring required

The ID of the file.

objectstring required

The object type, which is always "file". Only included for compatibility.