EnableAlwaysDeleteItems method

Future<void> EnableAlwaysDeleteItems(
  1. bool processSynchronously
)
Sets up a conversation so that any item received within that conversation is always moved to Deleted Items folder. Calling this method results in a call to EWS. Indicates whether the method should return only once enabling this rule and deleting existing items in the conversation is completely done. If processSynchronously is false, the method returns immediately.

Implementation

Future<void> EnableAlwaysDeleteItems(bool processSynchronously) async {
  // ExchangeService.EnableAlwaysDeleteItemsInConversations
  (await _ApplyConversationAction(
    ConversationActionType.AlwaysDelete,
    [Id!],
    processSynchronously,
    null,
    true,
    null,
    ServiceErrorHandling.ReturnErrors,
  ))[0].ThrowIfNecessary();
}