agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/submission/AbstractJobSubmissionTest.java
/**
     * Removes all {@link Job#getWorkPath()} on the {@link Job#getArchiveSystem()}
     * @throws Exception if anything goes wrong
     */
Removes all  Job#getWorkPath() on the  Job#getArchiveSystem()
@throws Exception if anything goes wrong
Removes all Job#getWorkPath () on the Job#getArchiveSystem () @throws Exception if anything goes wrong
public void deleteAllJobArchiveDirectories() throws Exception {
        for (Job job: JobDao.getAll()) 
        {  
            if (job.isArchiveOutput()) {
                deleteJobArchiveDirectory(job);
            }
        }
    }
public void deleteAllJobArchiveDirectories ( ) throws Exception { for ( Job job : JobDao . getAll ( ) ) { if ( job . isArchiveOutput ( ) ) { deleteJobArchiveDirectory ( job ) ; } } }
Removes all {@link Job#getWorkPath()} on the {@link Job#getArchiveSystem()}
 @throws Exception if anything goes wrong
Removes all { @link Job#getWorkPath () } on the { @link Job#getArchiveSystem () } @throws Exception if anything goes wrong
// for each job run, clean up the work data and archive folder of it exists.