prorm API Reference
    Preparing search index...

    Class RightToErasure

    Index
    • Erase personal data for one or more data subjects.

      Parameters

      • model: any

        The primary model to erase from

      • query: { where: Record<string, any> }

        Where clause identifying the data subject(s)

      • options: ErasureOptions = {}

        Erasure mode, fields, and cascade configuration

      Returns Promise<ErasureResult>

      An ErasureResult with a unique request ID for DSAR audit purposes

    • Check if records exist for a given subject (for verification before erasure).

      Parameters

      • model: any
      • query: { where: Record<string, any> }

      Returns Promise<boolean>