public function clean($projectPath, $keep = 1, $force = false) { $builds = $this->getJobsToRemove($projectPath, $keep); $this->cleanDirectories($builds); $this->cleanContainers($builds); $this->cleanImages($builds, $force); }