DELETE /api/v1/media/{id}

Delete an uploaded file (storage object and record). 409 media_in_use while a post using it is scheduled, queued, publishing or pending approval. Posts already published keep their platform copy

DELETE
/api/v1/media/{id}

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Path Parameters

id*string

Id

Response Body

{id, deleted}

application/json
  1. response
id?string
deleted?boolean
Example Request
curl -X DELETE 'https://example.com/api/v1/media/string'
Example Response
{  "id": "string",  "deleted": true}