gl_archive_purge
Deletes archived accounting periods only after their ten-year retention expires, records the reason, and leaves a purge record in place; retention-window requests are refused and logged.
Instructions
Purge archived periods whose OR 958f ten-year retention has expired, with a recorded reason. Deletes ARCHIVE data only (structurally incapable of touching a live journal row), keeps a purge record where the periods were, and refuses inside the retention window with the date, recording the refusal: that record is the answer a data subject receives. Requires confirmed:true. CONSEQUENCE: Deletes archived periods whose ten-year retention has run out, with your reason; a purge record stays in their place. The purged data cannot be restored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| periodTo | Yes | ||
| confirmed | No | ||
| periodFrom | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |