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

# Delete a file

`DELETE /v1beta/files/{file_id}`

## Request

- Base URL: `https://api.indices.io`
- URL: `https://api.indices.io/v1beta/files/{file_id}`
- Auth: HTTP bearer

Delete a file and its stored bytes.

## Path parameters

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

## Response `200`

Successful response

- DeleteFileResponse
  - `id` string, required: ID of the deleted file.
  - `deleted` boolean, required: Always true when the file was deleted.

## Other responses

- `422`: Validation error

---

[API](https://skmtc.dev/indices/apis/indices-api.md) · [All operations](https://skmtc.dev/indices/apis/indices-api/llms.txt) · [OpenAPI document](https://skmtc.dev/indices/apis/indices-api/revisions/e0f2742c126c?raw)
