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

# Delete file

`DELETE /files/{file_id}`

Delete a file.

## Path parameters

- `file_id` string, required

## Response `200`

Success. The File object matching the specified ID is deleted.

- FileDeleted
  - `id` string — The file identifier.
  - `object` string — The object type, which is always `file`.
  - `deleted` boolean — Indicates whether the file was successfully deleted. Returns `true` if the file was deleted, otherwise returns `false`.

## Other responses

- `4XX` — Client error <p> This indicates an issue with the request format or frequency. Please see our [Error Codes](https://docs.voyageai.com/docs/error-codes) guide. </p>
- `5XX` — Server Error <p> This indicates our servers are experiencing high traffic or having an unexpected issue. Please see our [Error Codes](https://docs.voyageai.com/docs/error-codes) guide. </p>

---

[API](https://skmtc.net/voyageai/apis/voyage-api.md) · [All operations](https://skmtc.net/voyageai/apis/voyage-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voyageai/voyage-api/revisions/b5a3e09c43ce/schema)
