Table of Contents

Enum ErasureLegalBasis

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Legal basis for erasure under GDPR Article 17.

public enum ErasureLegalBasis

Fields

ChildData = 6

Article 17(1)(f) - Child's data in information society services.

ConsentWithdrawal = 2

Article 17(1)(b) - Consent withdrawal.

DataNoLongerNecessary = 1

Article 17(1)(a) - Data no longer necessary for purpose.

DataSubjectRequest = 7

Data subject direct request (general right to erasure).

LegalObligation = 5

Article 17(1)(e) - Legal obligation to erase.

NotEstablished = 0

No Article 17(1) ground was established: nobody stated one.

Zero means "not established" so that a value nobody assigned cannot read as a lawful ground. required makes omission inexpressible to the C# compiler, but a reflection binder, a deserializer, a store round trip and an out-of-range cast all reach this enum without the compiler's involvement — and whatever sits at zero is what they produce. While zero was DataNoLongerNecessary, an unset value was indistinguishable from a deliberate Article 17(1)(a) claim on a signed erasure certificate.

It is not a lawful basis and must never be attested as one. A certificate carrying it records that the ground for erasing was not established, and the erasure is not reported complete.

RightToObject = 3

Article 17(1)(c) - Right to object.

UnlawfulProcessing = 4

Article 17(1)(d) - Unlawful processing.