---
title: "Delete File"
method: DELETE
path: "/v1/files/{file_id}"
---

# Delete File

`DELETE /v1/files/{file_id}`

Delete a file and its associated S3 object.

Args:
    file_id: UUID of the file to delete
    identity: Authentication identity containing org_id
    db: Database session
    s3: S3 session for deleting objects
    
Returns:
    dict: Success confirmation
    
Raises:
    HTTPException: 404 if file not found or doesn't belong to org

## Path parameters

- `file_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-07** `62c455aac36a` — 1 breaking, 1 warning, 2 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the optional property `status` from the response with the `200` status
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
- **2025-10-06** `8814c306e6ef` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/spi-tch/apis/spitch-api/changes/v1/files/:file_id/delete.md)

---

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