I also ran the following commands in powershell with admin privileges but still no change. 
Get-AppxPackage -Name "Microsoft.Office.Desktop.Access" | Remove-AppxPackage
Get-AppxPackage -Name "Microsoft.Office.Desktop.OneNote" | Remove-AppxPackage
Get-AppxPackage -Name "Microsoft.Office.Desktop.Publisher" | Remove-AppxPackage
Get-AppxPackage -Name "Microsoft.Office.Desktop.Teams" | Remove-AppxPackage
Get-AppxPackage -Name "Microsoft.Office.Desktop.Groove" | Remove-AppxPackage
I also tried again with the following configuration file but no success.
	Code:
	<Configuration>
  <Add Version="MatchInstalled">
    <Product ID="O365ProPlusRetail">
      <Language ID="MatchOS" />
      <ExcludeApp ID="Access" />
      <ExcludeApp ID="Publisher" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="OneNote" />
      <ExcludeApp ID="Teams" />
      <ExcludeApp ID="Bing" />
      <ExcludeApp ID="Teams" />
    </Product>
  </Add>
</Configuration>
 
The xml and the setup file are in the same folder. I have tried running cmd prompt in admin privilege mode and regular mode too.