src/File.php
public function deleteFiles(array $files) : bool
    {
        if (empty($files)) {
            return false;
        }

        $status = true;

        foreach ($files as $file) {
            if (file_exists($file)) {
                $status = $status && unlink($file);
            }
        }

        return $status;
    }
public function deleteFiles(array $files) : bool
    {
        if (empty($files)) {
            return false;
        }

        $status = true;

        foreach ($files as $file) {
            if (file_exists($file)) {
                $status = $status && unlink($file);
            }
        }

        return $status;
    }
public function deleteFiles ( array $ files ) : bool { if ( empty ( $ files ) ) { return false ; } $ status = true ; foreach ( $ files as $ file ) { if ( file_exists ( $ file ) ) { $ status = $ status && unlink ( $ file ) ; } } return $ status ; }
Delete multiple files.

@param array $files

@return bool
Delete multiple files .