API referenceMedia
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
BearerAuthheader
AuthorizationBearer <token>API key sk_...
id*stringId
{id, deleted}
application/json- response
id?stringdeleted?booleancurl -X DELETE 'https://example.com/api/v1/media/string'Example Response
{ "id": "string", "deleted": true}