← All questions
Data, Privacy & LegalHard· Compliance· Data Lifecycle· System Design

Legal commits to unrecoverable deletion within 24 hours...

The 24-hour deletion requirement and the nightly index rebuild are not in conflict if you decouple logical deletion from physical removal. A tombstone record combined with immediate access revocation satisfies the legal requirement for erasure. You can then manage physical removal by using a priority queue that allows legal deletion requests to trigger a rebuild without changing the cadence of the standard nightly batch process, ensuring the system remains performant.

Code playground (Python)