---
title: "Delete files"
method: DELETE
path: "/files"
tags: ["Files"]
---

# Delete files

`DELETE /files`

## Request

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

Permanently delete all of the specified files. Each file ID should be
provided as a query parameter, e.g. `/files?file_id=abcde&file_id=fghijk`

If any or all file IDs are invalid or not found, the overall response will be
`200 Success`, and the response body will contain the individual error messages for
each file ID.

A maximum of 1000 file IDs can be included in a single query.

## Query parameters

- `file_id` string[], required

## Response `200`

The status of each deletion request.

- DeleteFileStatus[]
  - `file_id` string, required
  - `status` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2023-12-13** `51f2a4c5de2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zuva/apis/zuva-docai/changes/files/delete.md)

---

[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)
