private void purgeWorkflows(List<String> wfs) throws JPAExecutorException {
wfDel += wfs.size();
Collections.reverse(wfs);
for (int startIndex = 0; startIndex < wfs.size(); ) {
int endIndex = (startIndex + limit < wfs.size()) ? (startIndex + limit) : wfs.size();
jpaService.execute(new WorkflowJobsDeleteJPAExecutor(wfs.subList(startIndex, endIndex)));
startIndex = endIndex;
}
}