---
title: "Delete file"
method: DELETE
path: "/api/storage/file"
tags: ["storage"]
---

# Delete file

`DELETE /api/storage/file`

Delete a file from storage. Admins can delete any user's files. Otherwise the path must belong to the current user.

## Query parameters

- `file_path` string, required — Full path to the file to delete (e.g., users/{user_id}/files/documents/consent.pdf)

## Response `200`

Successful Response

- DeleteFileResponse — File deletion response model.
  - `message` string — Success message

## Other responses

- `422` — Validation Error

---

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