Delete File
Permanently delete an uploaded file.
Permanently delete an uploaded file and free its storage. After delete,
any chat completion request that still references the file_id will
fail with 404 No such File object.
DELETE /v1/files/:file_idPath parameters
file_idstringrequiredThe id of the file (prefixed file-).
Response
idstringoptionalThe id of the deleted file (echo).
object'file'optionalAlways file.
deletedbooleanoptionaltrue when the underlying object was removed.
Deletion is permanent and cannot be undone.
Errors
| Status | Reason |
|---|---|
404 | No such File object: <id> - id does not exist or is owned by another user. |