---
title: "Delete the file; the record stays as deleted"
method: DELETE
path: "/media/{id}"
tags: ["Media"]
---

# Delete the file; the record stays as deleted

`DELETE /media/{id}`

## Request

- Base URL: `https://preflight.social/v1`
- URL: `https://preflight.social/v1/media/{id}`
- Auth: HTTP bearer

## Response `200`

Deleted.

- Media
  - `id` string, uuid
  - `kind` 'image' | 'video'
  - `status` 'awaiting_upload' | 'ingesting' | 'processing' | 'ready' | 'failed' | 'deleted'
  - `mimeType` string, nullable
  - `sizeBytes` integer, nullable
  - `durationSeconds` number, nullable
  - `width` integer, nullable
  - `height` integer, nullable
  - `fps` number, nullable
  - `fileName` string, nullable
  - `previewUrl` string, uri, nullable: A short-lived link to the file.
  - `error` string, nullable
  - `createdAt` string, date-time

## Other responses

- `401`: Missing, expired or unrecognised key.
- `404`: No such post, file or account in this workspace.
- `409`: in_use: a post that has not finished going out still needs it.

---

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