Delete a media item
DELETE/api/partner-gateway/media/:id
Deletes a media file from your library, permanently. This cannot be undone.
- Messages already sent are not affected: the content was delivered when they were sent.
- Future sends break: a message or campaign that references the deleted media ID can no longer resolve the file.
- When the delete is refused: with
409if the media is public or still referenced by a social media post, with400if it is still being uploaded or sits in a read-only folder.
Check before you delete. Make sure that no scheduled campaign, and no message template still to be sent, references the media ID.
Request
Responses
- 204
- 400
- 401
- 404
- 409
Media deleted. No response body.
The media is still being uploaded or sits in a read-only folder.
The API key is missing, invalid, or lacks the MEDIA operation.
No media file with this ID in your library.
The media is public or still referenced by a social media post.