DeleteWhatsAppMessageMedia
Source:
src/AWS/SocialMessaging/DeleteWhatsAppMessageMedia.ts
Runtime binding for social-messaging:DeleteWhatsAppMessageMedia.
Deletes a media file previously uploaded to WhatsApp from the given phone number.
The caller addresses one of the bound account’s phone numbers per
request; phone-number ARNs are provisioned by Meta under the WABA, so
the deploy-time half grants social-messaging:DeleteWhatsAppMessageMedia on *.
Provide the implementation with
Effect.provide(AWS.SocialMessaging.DeleteWhatsAppMessageMediaHttp).
Managing Message Media
Section titled “Managing Message Media”// init — bind the operation to the linked WABAconst deleteMedia = yield* AWS.SocialMessaging.DeleteWhatsAppMessageMedia(account);
// runtimeconst { success } = yield* deleteMedia({ mediaId: "media-id-to-delete", originationPhoneNumberId: "phone-number-id-0123456789abcdef",});