Thank you Hinte for your answer.
My installation is composed by 4 server. There are 2 Mailbox and 2 Client Access. On the Client Access servers there are less of these "version numbered" directories. One of them has been installed starting with CU8 and it has no directories with
version number.
I have searched through the setup log but I could not find any error related to deleting files. But I hev found something that could be interesting.
Last night I installed CU8 and I have searched the ExchangeSetup.log for one of the Mailbox Servers. At the stage "Setup will run the task 'Install-ClientAccessRole'" I have found the following lines:
[06/15/2015 22:35:33.0657] [2] Beginning processing Update-OwaVirtualDirectory
[06/15/2015 22:35:33.0673] [2] Copying the files from directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current" to target directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2" on server "localhost".
[06/15/2015 22:35:33.0673] [2] Copying the files from directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current\ClientBin" to target directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2\ClientBin" on server "localhost".
[06/15/2015 22:35:33.0673] [2] The file is being copied from "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current\ClientBin\OwaSl.xap" to "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2\ClientBin\OwaSl.xap" on server "localhost".
[06/15/2015 22:35:33.0673] [2] Copying the files from directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current\scripts" to target directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2\scripts" on server "localhost".
[06/15/2015 22:35:33.0673] [2] Copying the files from directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current\scripts\basic" to target directory "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2\scripts\basic" on server "localhost".
[06/15/2015 22:35:33.0673] [2] The file is being copied from "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current\scripts\basic\addrbook.js" to "C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2\scripts\basic\addrbook.js" on server "localhost".
....
Now I have a "15.0.1076.2" a subdirectory in C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\Owa.
Then I looked in the log files named "UpdateCas.log" and I have found the following entries:
[00:14:21] ***********************************************
[00:14:21] * UpdateCas.ps1: 16/06/2015 00:14:21
[00:14:29] Updating OWA/ECP on server MBX002
[00:14:29] Finding ClientAccess role install path on the filesystem
[00:14:29] FixUnversionedFolderAfterUpgrade: No srcVersions 15.0.1076.*
[00:14:29] Updating OWA to version 15.0.1076.2
[00:14:29] Copying files from 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current' to 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\15.0.1076.2'
[00:14:29] Update OWA done.
[00:14:29] Updating OWA to version 15.0.1076.9
[00:14:29] Copying files from 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\Current2\version' to 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\prem\15.0.1076.9'
[00:14:45] Update OWA done.
[00:14:45] Updating ECP to version 15.0.1076.9
[00:14:45] Copying files from 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\Current' to 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\15.0.1076.9'
[00:15:04] Update ECP done.
So it seems that the CU setup does not delete older versions of files, at least not Client Access web components files, and it copies them in some - maybe - backup directories.
I have found no documentation about this behaviour, but if this is true it should be safe to remove the older directories, keeping only the more recent one.
Maybe this is done to keep track of some theme's personalization and allow users to recover them after the update... But disk space cannot be infinite, so I think that we should know, for sure, if and when we can delete all those files (the "prem"
directory is quite huge on my servers...).