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

# Delete a file

`DELETE /v1/files/{file_id}`

Delete a file. This cannot be undone.

## Path parameters

- `file_id` string, required — The unique identifier of the file.

## Response `200`

Successful Response

- FileDeleteResponse — Response from deleting a file. Following the OpenAI API convention for delete responses.
  - `id` string, required — The unique identifier of the deleted file.
  - `object` 'file', required — The object type, which is always 'file'.
  - `deleted` true, required — Whether the file was successfully deleted.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Content
- `429` — Too Many Requests

## Changes

- **2026-01-30** `343b87354807` — 4 info
  - the response property `deleted` became required for the status `200`
  - the response property `object` became required for the status `200`
  - the `deleted` response's property default value `true` was removed for the status `200`
  - the `object` response's property default value `file` was removed for the status `200`
- **2026-01-27** `8ac85d74d2c5` — 1 breaking, 1 info
  - removed the success response with the status `204`
  - added the success response with the status `200`
- **2026-01-26** `f87ec588f22a` — 3 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `429`

[Change history](https://skmtc.dev/deeptable-com/apis/deeptable-api/changes/v1/files/:file_id/delete.md)

---

[API](https://skmtc.dev/deeptable-com/apis/deeptable-api.md) · [All operations](https://skmtc.dev/deeptable-com/apis/deeptable-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deeptable-com/deeptable-api/revisions/acfb7545d197/schema)
