code: public function cleanDirectories($jobs = array())
      {
          foreach ($jobs as $job) {
              $this->filesystem->remove($job->getDirectory());
          }
      }
docs: Clean directories for given builds
  
  @param \Joli\JoliCi\Job[] $jobs A list of jobs to remove images from