Joli\JoliCi\Vacuum::clean PHP Method

clean() public method

Clean containers, images and directory from a project
public clean ( string $projectPath, integer $keep = 1, boolean $force = false )
$projectPath string Location of the project
$keep integer How many versions does we need to keep (1 is the default in order to have cache for each test)
$force boolean Force removal for images
    public function clean($projectPath, $keep = 1, $force = false)
    {
        $builds = $this->getJobsToRemove($projectPath, $keep);
        $this->cleanDirectories($builds);
        $this->cleanContainers($builds);
        $this->cleanImages($builds, $force);
    }