DELETE
/
openai
/
v1
/
files
/
{file_id}
Delete file
curl --request DELETE \
  --url https://api.novita.ai/openai/v1/files/{file_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "deleted": true,
  "id": "<string>",
  "object": "<string>"
}
Deletes a specific file using its file ID.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format, for example: Bearer {{API Key}}.

Path Parameters

file_id
string
required
The unique identifier of the file to delete.

Response

deleted
boolean
required
Indicates whether the file was successfully deleted. Returns true if the deletion was successful.
id
string
required
The unique identifier of the deleted file.
object
string
required
The object type, which is always file.