gl_archive_purge
Purge archived accounting periods after ten-year retention expires, recording the reason and keeping a purge record; refuse with a dated record for any period still inside the retention window.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| periodTo | Yes | ||
| confirmed | No | ||
| periodFrom | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |