---
title: "Delete file"
method: DELETE
path: "/v1/files/{file_id}"
tags: ["Files"]
---

# Delete file

`DELETE /v1/files/{file_id}`

Delete file

## Path parameters

- `file_id` string, required — The ID of the file to delete.

## Response `200`

The file was deleted.

- OpenAIFileDeleteResponse — Response for deleting a file in OpenAI Files API.
  - `id` string, required — The file identifier that was deleted.
  - `object` 'file' — The object type, which is always 'file'.
  - `deleted` boolean, required — Whether the file was successfully deleted.

## Other responses

- `400` — The request was invalid or malformed
- `429` — The client has sent too many requests in a given amount of time
- `500` — The server encountered an unexpected error
- `default` — An error occurred

---

[API](https://skmtc.net/ogx-ai/apis/ogx-specification-stable-experimental-apis.md) · [All operations](https://skmtc.net/ogx-ai/apis/ogx-specification-stable-experimental-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ogx-ai/ogx-specification-stable-experimental-apis/versions/f3f783962256/schema)
