Delete Media

View Markdown

Delete a media object by ID.


DELETE
/media/{id}

Authorization

AuthorizationRequiredBearer <token>

See API Security for more details.

In: header

Path Parameters

idRequiredstring

Header Parameters

Accept-Versionstring

Specifies the API Version

Default: "2025-08-20"Value in: "2025-08-20" | "latest"

Response Body

Accepted

messagestring
await fetch("https://api.ittybit.com/media/med_abcdefgh1234", {
  method: "DELETE",
  headers: { "Authorization": "Bearer ITTYBIT_API_KEY" }
})
{
  "message": "med_abcdefgh1234 deleted"
}