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

# Delete a file

`DELETE /files/{id}`

Deletes a file by ID.

## Path parameters

- `id` string, cuid, required — The ID of the item

## Headers

- `x-client-id` string, cuid, required — The ID of the client

## Response `200`

File deleted

- DeleteResponse
  - `object` string, required — The type of the deleted object
  - `deleted` boolean, required — Whether the object was deleted
  - `id` string, cuid, required — The ID of the deleted object

## Other responses

- `401` — Unauthorized
- `404` — File not found
- `422` — Invalid id error
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/steuerboard/apis/steuerboard-api.md) · [All operations](https://skmtc.net/steuerboard/apis/steuerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steuerboard/steuerboard-api/versions/9170dd572b31/schema)
