OpenAI

删除文件

删除一个文件。

先调用「上传文件」,用返回的文件 ID 替换示例文件 ID。

DELETE /openai/v1/files/{file_id}● 支持

OpenAI 官方文档 ↗

请求参数

  • file_idstring必填

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

返回

200 file

错误按 OpenAI 格式返回,参见 错误码

响应

HTTP 200

OK

application/json

名称类型说明
idstring
objectstring
deletedboolean