---
title: "Delete a media asset (uploader only, and only if no commit snapshot still references it)"
method: DELETE
path: "/media/{mediaId}"
tags: ["Media"]
---

# Delete a media asset (uploader only, and only if no commit snapshot still references it)

`DELETE /media/{mediaId}`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/media/{mediaId}`
- Auth: HTTP bearer

## Path parameters

- `mediaId` string, uuid, required

## Response `204`

Deleted

## Other responses

- `422`: Still referenced by entry history -- history must not lose files

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
