You can only void Payroll checks with the statuses Accrued, Manual, or Printed.
If the checks have a status other than Accrued, Manual, or Printed, correct or delete the check in Enter Checks.
How do I void a Payroll check or direct deposit?