---
title: "Delete File"
method: DELETE
path: "/api/v1alpha1/assistant/{assistant_kind}/files/{file_id}"
tags: ["v1alpha1"]
---

# Delete File

`DELETE /api/v1alpha1/assistant/{assistant_kind}/files/{file_id}`

Member deletes their own file — bucket object(s) + store record.

Works on both pending (cancels the upload) and active files. Ownership
scoping is identical to ``get_file``/``download_file``: wrong member,
wrong kind, and unknown ``file_id`` are indistinguishable 404s (no
existence oracle).
Refs to a deleted file already in a conversation's history resolve via the
same expired/missing-ref placeholder path as any other reclaimed object —
nothing else to update there.

## Path parameters

- `file_id` string, required

## Headers

- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/trademeai/apis/trade-me-ai-platform.md) · [All operations](https://skmtc.net/trademeai/apis/trade-me-ai-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/trademeai/trade-me-ai-platform/revisions/02634860dec7/schema)
