public function clean() { $jobFiles = glob($this->getLocation() . '*.js'); foreach ($jobFiles as $file) { unlink($file); } }