---
title: "Delete a file you own"
method: DELETE
path: "/v1/files/{uuid}"
tags: ["Files"]
---

# Delete a file you own

`DELETE /v1/files/{uuid}`

## Request

- Base URL: `https://contentmaschine.ai/api`
- URL: `https://contentmaschine.ai/api/v1/files/{uuid}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://contentmaschine.ai/api/oauth/authorize`, token URL `https://contentmaschine.ai/api/oauth/token`)

Soft-deletes the file. The stored object is reclaimed by a background cleanup job, not synchronously here. A uuid belonging to another account answers 404, identical to an unknown one.

## Path parameters

- `uuid` string, uuid, required

## Response `200`

Deleted.

- object
  - `success` boolean
  - `data` object
  - `timestamp` string, date-time

## Other responses

- `401`: Missing or invalid API key.
- `404`: Unknown file, or not yours.
- `default`: Any other error. Every failure this API emits uses the same envelope; branch on `error.type`, never on `error.message`, and quote `error.correlation_id` to support.

---

[API](https://skmtc.dev/contentmaschine/apis/contentmaschine-ai-api.md) · [All operations](https://skmtc.dev/contentmaschine/apis/contentmaschine-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/contentmaschine/apis/contentmaschine-ai-api/revisions/28c74f46051c?raw)
