DELETE
/
files
/
{file_id}
curl --request DELETE \
  --url https://api.openai.com/v1/files/{file_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "file",
  "deleted": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required

The ID of the file to use for this request.

Response

200 - application/json

OK

The response is of type object.