prorm API Reference
    Preparing search index...

    Class DataRetentionPolicy

    Index
    • Purge expired records for a specific model.

      Parameters

      • model: any

        The model class

      • Optionalprorm: any

        The Prorm instance (for Op support)

      Returns Promise<{ affected: number; mode: string }>

      Number of records deleted or anonymized

    • Purge all models that have a registered retention policy.

      Parameters

      • Optionalprorm: any

        The Prorm instance

      Returns Promise<Map<string, { affected: number; mode: string }>>

      A map of model name → purge result