# Delete file - Documentation

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/api-reference/model-apis-llm-delete-file

# Delete file

DELETE

/

openai

/

v1

/

files

/

{file_id}

Try it

Delete file

cURL

```
curl --request DELETE \
--url https://api.novita.ai/openai/v1/files/{file_id} \
--header 'Authorization: &#x3C;authorization>' \
--header 'Content-Type: &#x3C;content-type>'
```

200

```
{
"deleted": true,
"id": "&#x3C;string>",
"object": "&#x3C;string>"
}
```

Deletes a specific file using its file ID.

##

[​](#request-headers)

Request Headers

[​](#param-content-type)

Content-Type

string

required

Enum: `application/json`

[​](#param-authorization)

Authorization

string

required

Bearer authentication format, for example: Bearer {{API Key}}.

##

[​](#path-parameters)

Path Parameters

[​](#param-file-id)

file_id

string

required

The unique identifier of the file to delete.

##

[​](#response)

Response

[​](#param-deleted)

deleted

boolean

required

Indicates whether the file was successfully deleted. Returns `true` if the deletion was successful.

[​](#param-id)

id

string

required

The unique identifier of the deleted file.

[​](#param-object)

object

string

required

The object type, which is always `file`.

Last modified on August 12, 2025
