---
title: "Delete a file"
method: DELETE
path: "/api/v1alpha1/assistant/trademe/files/{file_id}"
tags: ["v1alpha1"]
---

# Delete a file

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

## Request

- Base URL: `https://api.trademeai.co.nz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.trademeai.co.nz/api/v1alpha1/assistant/trademe/files/{file_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/trademeai/apis/trade-me-ai-platform/docs/api/v1alpha1/assistant/trademe/files/:file_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes the member's file, whether it is pending (this cancels the upload) or active. Answers 204 with no body. A reference to the file in an old message shows as an expired file. A file that belongs to another member or does not exist answers 404.

## Path parameters

- `file_id` string, required

## Headers

- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-17** `4a6ad0ee6b5e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/changes/api/v1alpha1/assistant/trademe/files/:file_id/delete.md)

---

[API](https://skmtc.dev/trademeai/apis/trade-me-ai-platform.md) - [All operations](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/trademeai/apis/trade-me-ai-platform/revisions/1164c8a5c534?raw)
