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
- 200
- 404
- 500
The file was deleted.
No such file in the active organization.
The file could not be deleted from storage or its metadata could not be removed.