---
title: "Delete file"
method: DELETE
path: "/v1/files/{file_id}"
tags: ["File API"]
---

# Delete file

`DELETE /v1/files/{file_id}`

## Request

- Base URL: `https://api.writer.com`
- URL: `https://api.writer.com/v1/files/{file_id}`
- Auth: HTTP bearer

Permanently delete a file from the system. This action cannot be undone.

## Path parameters

- `file_id` string, required

## Response `200`

- DeleteFileResponse
  - `id` string, required: A unique identifier of the deleted file.
  - `deleted` boolean, required: Indicates whether the file was successfully deleted.

---

[API](https://skmtc.dev/writer/apis/writer-api.md) - [All operations](https://skmtc.dev/writer/apis/writer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/writer/apis/writer-api/revisions/59865afc5779?raw)
