StaticsetThe model class
Retention configuration
StaticunsetRemove the retention policy from a model.
StaticgetGet the registered policy for a model, or undefined.
StaticpurgePurge expired records for a specific model.
The model class
Optionalprorm: any
The Prorm instance (for Op support)
Number of records deleted or anonymized
StaticpurgePurge all models that have a registered retention policy.
Optionalprorm: any
The Prorm instance
A map of model name → purge result
StaticlistList all models with registered retention policies.
StaticcutoffCalculate the cutoff date for a given retention duration. Useful for displaying "records older than X will be deleted on Y".
Register a retention policy on a model. This does not start any background process — call purge() on a schedule.