public function deregister(Build $build) { $file = $this->baseDir . DIRECTORY_SEPARATOR . $build->getName(); if (file_exists($file)) { unlink($file); return true; } return false; }