int actionDeleted = 0;
if (jobList != null && jobList.size() != 0) {
for (CoordinatorJobBean coord : jobList) {
String jobId = coord.getId();
try {
jpaService.execute(new CoordJobDeleteJPAExecutor(jobId));
actionDeleted += jpaService.execute(new CoordActionsDeleteForPurgeJPAExecutor(jobId));
}
catch (JPAExecutorException e) {
throw new CommandException(e);
}