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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspaceId": "<workspaceId>",
"periodFrom": "<periodFrom>",
"periodTo": "<periodTo>",
"reason": "<reason>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "gl_archive_purge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| periodTo | Yes | ||
| confirmed | No | ||
| periodFrom | Yes | ||
| workspaceId | Yes | ||
| idempotencyKey | Yes |