Skip to content
OpenPostDocs
OpenPostDocs
Media

Move a media attachment to Trash when active work does not use it

DELETE/media/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Media ID

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://example.com/media/string"
{  "$schema": "https://example.com/api/v1/schemas/DeleteMediaOutputBody.json",  "message": "string"}