文件
删除文件
删除文件并立即阻止新的读取。
先调用「上传文件」,用返回的文件 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
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Id of the deleted file. |
| object | string | Object type; always `file`. |
| deleted | boolean | Always true; the file can no longer be read, though downloads already authorized may finish. |