---
title: "Delete the video row and nullify dependent FKs."
method: DELETE
path: "/api/v1/videos/{video_id}"
tags: ["Videos"]
---

# Delete the video row and nullify dependent FKs.

`DELETE /api/v1/videos/{video_id}`

## Request

- Base URL: `https://api.avatarfactory.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.avatarfactory.io/api/v1/videos/{video_id}`
- Auth: one of:
  - API key in cookie `session`
  - HTTP bearer

<br/>Storage cleanup of the underlying mp4 is intentionally NOT done<br/>here · the storage GC sweeps stranded files separately so the<br/>user-facing delete is fast and never blocks on S3. The Posts row<br/>survives (with `video_id=NULL`) so audit history is preserved.

## Path parameters

- `video_id` integer, required

## Response `200`

OK

- DeleteVideoResponse: Response payload for `DELETE /api/v1/videos/:id` (plan §6.4).
  - `message` string, required
  - `success` boolean, required

## Other responses

- `404`: Not Found
- `422`: Unprocessable Entity

---

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