Table of Contents

Method EraseCollectedAsync

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

EraseCollectedAsync(CancellationToken)

Erases every contact this deployment collected, leaving the ones the owner asserted where they are.

public Task<CollectedContactErasure> EraseCollectedAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the erasure.

Returns

Task<CollectedContactErasure>

What the erasure removed.

Remarks

The answer to an owner who changed their mind about collection. Everything collection produced is a contact of its own origin — it keeps no ledger, and the evidence it reads is the mail that was already there — so taking that origin out is taking out the whole of what it built, and nothing of what the owner entered goes with it.

It stays the operator's act under the erasing grant, beside the erasure of one person and of stored mail, and is not one of the acts the contact tools publish: switching collection off is a configuration change and undoing its output is a disposal, and neither is something an agent should be able to do on somebody's behalf.

Exceptions

PrincipalNotAuthorizedException

Thrown when the erasure was reached by anything but a caller granted AdminErase.