Skip to content

DeleteWhatsAppFlow

Source: src/AWS/SocialMessaging/DeleteWhatsAppFlow.ts

Runtime binding for social-messaging:DeleteWhatsAppFlow.

Deletes a DRAFT WhatsApp Flow from the bound account. Published flows must be deprecated instead.

The deploy-time half grants social-messaging:DeleteWhatsAppFlow 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.DeleteWhatsAppFlowHttp).

// init — bind the operation to the linked WABA
const deleteFlow = yield* AWS.SocialMessaging.DeleteWhatsAppFlow(account);
// runtime
yield* deleteFlow({ flowId: "1234567890" });