---
title: "Delete File"
method: DELETE
path: "/v2/files/{file_uuid}"
tags: ["Files"]
---

# Delete File

`DELETE /v2/files/{file_uuid}`

Delete a file (soft delete).

Args:
    file_uuid (str): UUID of the file to delete.

Returns:
    None (204 No Content)

Raises:
    AymaraAPIError: If the file is not found or user lacks access.

Example:
    DELETE /api/v2/files/{file_uuid}

## Path parameters

- `file_uuid` string, required

## Response `204`

No Content

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/aymara-ai/apis/aymara-api.md) · [All operations](https://skmtc.net/aymara-ai/apis/aymara-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aymara-ai/aymara-api/revisions/0cb64ef11adf/schema)
