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

# Delete file

`DELETE /v1/files/{file_id}`

Delete a specific file by its ID.

Removes the file from every store that references it (cleaning up chunks
and store stats) before deleting the file object itself.

Args:
    file_id: The ID of the file to delete.

Returns:
    FileDeleted: The response containing the details of the deleted file.

## Path parameters

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

## Response `200`

The details of the deleted file

- FileDeleted
  - `id` string, required — The ID of the deleted file
  - `deleted` boolean — Whether the file was deleted
  - `object` 'file' — The type of the deleted object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/mixedbread/apis/mxbai-omni.md) · [All operations](https://skmtc.net/mixedbread/apis/mxbai-omni/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixedbread/mxbai-omni/revisions/f66774ddecfc/schema)
