OpenAI

Delete file

Delete a file.

Upload a file first, then replace the example file ID with its returned ID.

DELETE /openai/v1/files/{file_id}● Supported

Official OpenAI docs ↗

Request parameters

  • file_idstring必填

    path: The ID of the file to use for this request.

Returns

200 file

Errors follow the OpenAI format — see error codes

Response

HTTP 200

OK

application/json

NameTypeDescription
idstring
objectstring
deletedboolean