curl --request DELETE \
--url https://api.openai.com/v1/files/{file_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "file",
"deleted": true
}
curl --request DELETE \
--url https://api.openai.com/v1/files/{file_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "file",
"deleted": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the file to use for this request.
OK
The response is of type object
.