public function cleanArchives($projectRoot, $maxAge = null, $keepMax = 10, $quiet = true)
    {
        return $this->cleanDirectory(
            $projectRoot . '/' . $this->config->get('local.archive_dir'),
            $maxAge,
            $keepMax,
            [],
            $quiet
        );
    }
public function cleanArchives($projectRoot, $maxAge = null, $keepMax = 10, $quiet = true)
    {
        return $this->cleanDirectory(
            $projectRoot . '/' . $this->config->get('local.archive_dir'),
            $maxAge,
            $keepMax,
            [],
            $quiet
        );
    }
public function cleanArchives ( $ projectRoot , $ maxAge = null , $ keepMax = 10 , $ quiet = true ) { return $ this -> cleanDirectory ( $ projectRoot . '/' . $ this -> config -> get ( 'local.archive_dir' ) , $ maxAge , $ keepMax , [ ] , $ quiet ) ; }
Remove old build archives.

@param string   $projectRoot
@param int|null $maxAge
@param int      $keepMax
@param bool     $quiet

@return int[]
The numbers of deleted and kept builds.
Remove old build archives .