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

# Delete a file

`DELETE /v1/files/{id}`

Deletes a specific file by its ID.

## Path parameters

- `id` string, required

## Response `204`

File deleted successfully. No content is returned.

## Other responses

- `404` — Not Found. The file with the specified ID does not exist or does not belong to the user.
- `422` — Validation Error. The file ID format is invalid.
- `429` — Rate Limit Exceeded.
- `5XX` — Internal Server Error.

---

[API](https://skmtc.dev/scan-documents/apis/scan-documents-api.md) · [All operations](https://skmtc.dev/scan-documents/apis/scan-documents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scan-documents/scan-documents-api/revisions/42f9aa9c3b27/schema)
