Skip to content

DeleteWhatsAppMessageTemplate

Source: src/AWS/SocialMessaging/DeleteWhatsAppMessageTemplate.ts

Runtime binding for social-messaging:DeleteWhatsAppMessageTemplate.

Deletes a WhatsApp message template from the bound account, optionally across all of its languages.

The deploy-time half grants social-messaging:DeleteWhatsAppMessageTemplate on the bound WABA’s ARN and the runtime half injects the linked account id into every request. Provide the implementation with Effect.provide(AWS.SocialMessaging.DeleteWhatsAppMessageTemplateHttp).

// init — bind the operation to the linked WABA
const deleteTemplate = yield* AWS.SocialMessaging.DeleteWhatsAppMessageTemplate(account);
// runtime
yield* deleteTemplate({
templateName: "order_update",
deleteAllLanguages: true,
});