DeleteItemsInConversations method

Future<ServiceResponseCollection<ServiceResponse>> DeleteItemsInConversations(
  1. Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  2. FolderId? contextFolderId,
  3. DeleteMode deleteMode
)
Deletes the items in the specified conversation. Calling this method results in a call to EWS. The pairs of Id of conversation whose items should be deleted and the date and time conversation was last synced (Items received after that date will not be deleted). The Id of the folder that contains the conversation. The deletion mode.

Implementation

Future<ServiceResponseCollection<ServiceResponse>> DeleteItemsInConversations(
  Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  FolderId? contextFolderId,
  DeleteMode deleteMode,
) {
  return ApplyConversationOneTimeAction(
    ConversationActionType.Delete,
    idLastSyncTimePairs,
    contextFolderId,
    null,
    deleteMode,
    null,
    null,
    null,
    null,
    null,
    ServiceErrorHandling.ReturnErrors,
  );
}