Skip to main content
DELETE

Delete media

Deletes the media record and removes the file from storage. Associations with posts and comments are removed via database cascades.

Request

integer
required
The media row id to delete.

Response

200 - { "message": "Media deleted successfully" }.

Errors

401 · 403 · 404 See Media overview.