---
title: "Delete a personal file or unfinished upload"
method: DELETE
path: "/api/me/files/{fileId}"
---

# Delete a personal file or unfinished upload

`DELETE /api/me/files/{fileId}`

## Request

- Base URL: `https://www.toma.com`
- URL: `https://www.toma.com/api/me/files/{fileId}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Delete your personal file or unfinished upload. Reads are blocked before bytes are removed. Failed cleanup keeps the deleting record and reserved quota; retry deletion. Cannot undo.

## Path parameters

- `fileId` string, required

## Response `200`

File operation result.

- FileDeleted
  - `deleted` unknown, required

## Other responses

- `401`: Sign in first.
- `403`: File access denied.
- `404`: No accessible personal file.
- `503`: Storage unavailable; retry later.

---

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