Skip to main content
DELETE
media
/
{media_id}
curl -X DELETE "https://postsyncer.com/api/v1/media/99" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Documentation Index

Fetch the complete documentation index at: https://docs.postsyncer.com/llms.txt

Use this file to discover all available pages before exploring further.

Delete media

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

Request

media_id
integer
required
The media row id to delete.
curl -X DELETE "https://postsyncer.com/api/v1/media/99" \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Response

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

Errors

401 · 403 · 404 See Media overview.