Delete file
DELETE
https://api.openai.com/v1/files/{file_id}Delete a file.
Request
Path Params
file_id
string
required
The ID of the file to use for this request
Header Params
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
id
string
required
object
string
required
deleted
boolean
required
Example成功示例
{
"id": "file-XjGxS3KTG0uNmNOK362iJua3",
"object": "file",
"deleted": true
}
Last modified: a year ago