deleteWhatsAppFlow method
Deletes a WhatsApp Flow permanently. Only Flows in DRAFT status can be deleted. Published or deprecated Flows cannot be deleted.
May throw AccessDeniedByMetaException.
May throw DependencyException.
May throw InternalServiceException.
May throw InvalidParametersException.
May throw ResourceNotFoundException.
May throw ThrottledRequestException.
Parameter flowId :
The unique identifier of the Flow to delete.
Parameter id :
The ID of the WhatsApp Business Account associated with this Flow.
Implementation
Future<void> deleteWhatsAppFlow({
required String flowId,
required String id,
}) async {
final $query = <String, List<String>>{
'flowId': [flowId],
'id': [id],
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/v1/whatsapp/flow',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}