Skip to main content

Delete a media item

DELETE 

/api/partner-gateway/v1/media/:id

Permanently deletes a media file from your library. This action cannot be undone. Messages that have already been sent with this media are not affected because the media content was delivered at send time. However, any future message or campaign that references the deleted media ID will fail to resolve the file. Before deleting, make sure the media ID is not referenced in any scheduled campaign or message template that has not yet been sent. Returns 204 on success with no response body. Returns 404 if no media file with the given ID exists in your library. Returns 401 if the API key is missing or invalid.

Request

Responses

Media deleted successfully