文件

删除文件

删除文件并立即阻止新的读取。

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

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

请求参数

  • file_idstring必填

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

返回

200 file

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

响应

HTTP 200

OK

application/json

名称类型说明
idstringId of the deleted file.
objectstringObject type; always `file`.
deletedbooleanAlways true; the file can no longer be read, though downloads already authorized may finish.