Docs
V2 APIMedia

Delete media

Deletes a file from the media library, with every placement it has, or deletes an embed. To take a file off one record and keep it everywhere else, remove that placement instead.

DELETE/api/v2/media/{media}

Deletes a file from the media library, with every placement it has, or deletes an embed. To take a file off one record and keep it everywhere else, remove that placement instead.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

media*string

The file's id.

Formatuuid

Query Parameters

account_id?string

Optional account to run this request against. Defaults to the account the API token is scoped to, so callers with a single account can omit it. Must be an account the authenticated user belongs to; staff may target any account. For write requests the value may be sent in the JSON body instead of the query string. The resolved account is returned on the X-Resi-Account-Id response header.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/v2/media/497f6eca-6276-4993-bfeb-53cbbbba6f08"
Empty