Why this matters
LGPD grants erasure; soft-deleting PII often keeps it recoverable and non-compliant.
On LGPD deletion, remove or irreversibly anonymize PII and purge dependent caches. Keep minimal audit metadata (timestamp, request ID) not linkable back to the subject.
LGPD grants erasure; soft-deleting PII often keeps it recoverable and non-compliant.
Side-by-side examples engineers can pattern-match during review.
user.IsActive = false; ctx.SaveChanges(); // PII still presentuser.Email = null; user.Name = null; user.CpfHash = null; user.DeletedAt = DateTime.UtcNow; ctx.SaveChanges(); Cache.Remove($"user:{id}");user.Email = null; user.Name = null;user.IsActive = false;From the same buckets as this rule.
Before handling sensitive personal data (e.g., health, biometric), verify a valid consent record and attach its ID to the processing context. Provide a path to revoke consent and stop further processing.