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

# Delete file

`DELETE /files/{id}`

## Response `200`

Deleted

- ApiResponseVoid
  - `success` boolean, required
  - `message` string, nullable
  - `timestamp` string, date-time, required
  - `data` object, nullable — Empty response payload

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

## Changes

- **2025-09-22** `a7e3adf2f210` — 1 breaking
  - the `allOf[subschema #2]/data` response's property type/format changed from ``/`` to `object`/`` for status `200`
- **2025-09-21** `29cedfcf6ce1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lobehub/apis/lobechat-openapi/changes/files/:id/delete.md)

---

[API](https://skmtc.dev/lobehub/apis/lobechat-openapi.md) · [All operations](https://skmtc.dev/lobehub/apis/lobechat-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lobehub/lobechat-openapi/revisions/7be2ebcf191c/schema)
