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

# Delete a file

`DELETE /files/{fileId}`

Deletes a file in a workspace.

## Path parameters

- `fileId` string, required

## Response `200`

OK

- PADeletedFileDTO
  - `id` string — The ID of the deleted file

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

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