public function cleanDirectories($jobs = array()) { foreach ($jobs as $job) { $this->filesystem->remove($job->getDirectory()); } }