Execute retention policy
Delete finished process instances older than the retention age. The workflow fixes the candidate set, plans family deletion, and records the outcome.
Examples
c8volt ops execute retention-policy --retention-days 90 --bpmn-process-id order --dry-run
c8volt ops execute retention-policy --retention-days 90 --bpmn-process-id order --auto-confirm --report-file retention.md
Execution
The age filter uses instance end dates. --limit caps eligible selected instances; family expansion can include newer relatives. Review that scope before scheduling recurring cleanup.
Instances whose root is still unfinished are skipped, even with --force. Unfinished descendants of a finished root require --force.
Deletion processes children before parents and waits for disappearance by default. Required cancellation checks run before deletion.
See the shared ops controls for discovery, confirmation, tenant scope, and reports.
Command reference · get process-instance · delete process-instance