Delete payrun
delete_payrunMove a pay run and its payslips to the bin. Each finalised payslip's journal leaves the books until the run is restored from the bin, and the pay run's pay-date action is turned off. Without confirm true it changes nothing and answers reason confirm-required with what it would remove; ask the user, then call again with confirm true. A pay run with a finalised payslip dated in a locked period is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| confirm | No | Send true only after the user has agreed to the change the refusal described. |