Occasionally it may be necessary to delete an entire batch of previously processed payroll documents. WFH integrators can delete a batch by calling the Delete Document Batch endpoint and sending the batchId of the batch to delete.
If you don’t know the batchId, call the Get Document Batches endpoint to get the existing batches, loop through those batches and find the one in question to get its batchId.