int actionDeleted = 0;
if (jobList != null && jobList.size() != 0) {
for (BundleJobBean bundle : jobList) {
String jobId = bundle.getId();
try {
jpaService.execute(new BundleJobDeleteJPAExecutor(jobId));
actionDeleted += jpaService.execute(new BundleActionsDeleteForPurgeJPAExecutor(jobId));
}
catch (JPAExecutorException e) {
throw new CommandException(e);
}