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

# Delete file

`DELETE /files/{file_id}`

## Request

- Base URL: `https://us.app.zuva.ai/api/v2`
- URL: `https://us.app.zuva.ai/api/v2/files/{file_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/zuva/apis/zuva-docai/docs/files/:file_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete an existing file. Only the owner of the file may delete it.

## Path parameters

- `file_id` string, required

## Response `204`

The file was deleted successfully.

## Other responses

- `400`: Invalid file ID
- `401`: Unauthorized
- `403`: Forbidden
- `404`: File not found.
- `410`: File expired
- `500`: Internal Server Error

---

[API](https://skmtc.dev/zuva/apis/zuva-docai.md) - [All operations](https://skmtc.dev/zuva/apis/zuva-docai/llms.txt) - [OpenAPI document](https://skmtc.dev/zuva/apis/zuva-docai/revisions/7397ad071d55?raw)
