Table of Contents

Interface IUserErasure

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

Takes one user off this deployment, with everything it recorded for them.

public interface IUserErasure

Remarks

The counterpart of IUserProvisioning and deliberately a port of its own, because the two are not one capability with a flag. Provisioning is idempotent because two writers may reach one row at once and the loser is answered with what the deployment holds; this runs when a person asked for it, once, and what it removes cannot be written back. A deployment that never calls it goes on holding the user, and every user a deployment holds is served.

It is the whole of the erasure rather than the user row alone. The mail graph hangs on that row through mailbox_accounts.UserId, so the accounts, the folders, the mail beneath them, everything derived from that mail, and the contact book this user assembled all go with it — and the rows that name a mail account without keying onto one are taken by the adapter, since no constraint would have reached them.

Methods

EraseAsync(UserId, IReadOnlyList<Guid>, CancellationToken)

Erases one user and everything this deployment recorded for them.