---
title: "Delete an owned file"
method: DELETE
path: "/api-platform/files/{file_id}"
tags: ["Files"]
---

# Delete an owned file

`DELETE /api-platform/files/{file_id}`

## Request

- Base URL: `https://api.textcortex.com/v1`
- URL: `https://api.textcortex.com/v1/api-platform/files/{file_id}`
- Auth: HTTP bearer

Delete one uploaded file owned by the current API key user.

Uses the current API key's permissions. Check `GET /capabilities` for availability. Deletes the owned file and its associated KB insertions; this is not a detach-from-one-KB operation.

## Path parameters

- `file_id` string, required

## Response `200`

Successful response

- DeletedFile
  - `deleted` boolean, required
  - `id` string, required
  - `object` 'file.deleted', required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key
- `403`: Access denied
- `404`: Resource not found
- `422`: Request validation failed
- `500`: Server error

## Changes

- **2026-10-08** `254204fd17bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/textcortex/apis/textcortex-api/changes/api-platform/files/:file_id/delete.md)

---

[API](https://skmtc.dev/textcortex/apis/textcortex-api.md) - [All operations](https://skmtc.dev/textcortex/apis/textcortex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/textcortex/apis/textcortex-api/revisions/b27459bd3c96?raw)
