deleteTemplateById method

  1. @override
Future<MessageTemplateV1?> deleteTemplateById(
  1. String? correlationId,
  2. String id
)
override

Deleted a template by it's unique id.

  • correlation_id (optional) transaction id to trace execution through call chain.
  • id an id of the template to be deleted Return Future that receives deleted template Throws error.

Implementation

@override
Future<MessageTemplateV1?> deleteTemplateById(
    String? correlationId, String id) async {
  return persistence.deleteById(correlationId, id);
}