Traversing the purge tree to determine archived policy periods
In this step of the purge graph traversal, PolicyCenter excludes from purging any policies that have an archived policy period and entities whose presence is required to preserve data consistency. For an example of the latter, an entity in the graph that has a descendant that is not purgeable is excluded in this pass.
The traversal starts from the initial root of the personal destruction request and visits all descendant nodes.
For each visited node, PolicyCenter marks the node not purgeable if any of the following are true:
- The node is a Policy or PolicyTerm with an archived PolicyPeriod.
- The node is an ancestor of a Policy with an archived PolicyPeriod: for example, Account and primary Contact.
-
The node is a PolicyTerm or PolicyPeriod sharing a Policy with an archived PolicyPeriod.
Sets of related Policy, PolicyTerm, and PolicyPeriod objects are kept or purged together. If a PolicyPeriod in the set is archived, the entire set is kept.
