v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1431213151.3 KB

Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too.

delete/v1/whatsapp/media#mediaId&originationPhoneNumberId

Query parameters

mediaIdstring required

The unique identifier of the media file to delete. Use the <code>mediaId</code> returned from <a href="https://console.aws.amazon.com/social-messaging/latest/APIReference/API_PostWhatsAppMessageMedia.html">PostWhatsAppMessageMedia</a>.

originationPhoneNumberIdstring required

The unique identifier of the originating phone number associated with the media. Phone number identifiers are formatted as <code>phone-number-id-01234567890123456789012345678901</code>. Use <a href="https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccount.html">GetLinkedWhatsAppBusinessAccount</a> to find a phone number's id.

Response

Success

successboolean

Success indicator for deleting the media file.