Skip to main content

Delete a file

DELETE 

/v1/files/:file_id

Hard-delete a file: the stored object is removed first, then its metadata row. Returns 404 when the file does not exist or belongs to a different organization (existence is not disclosed across organizations). The success body is OpenAI-shaped ({ id, object: "file", deleted: true }).

Request

Responses

The file was deleted.