I am using visual studio 2012 with Microsoft TFS 2012.
On the workspace that is created on my c:
drive, a hidden folder $tf
is created. I suspect TFS from creating this folder. It's lurking diskspace as the current size is several gigabytes now and it's about 25% diskspace of the total amount of gigabytes needed for the complete workspace. So this hidden $tf
folder is quite huge.
The structure is like this:
c:\workspace\$tf\0\{many files with guid in filename}.gz c:\workspace\$tf\1\{many files with guid in filename}.gz
Does anyone know if I can delete this $tf
folder safely or if it is absolutely necessary to keep track of changes inside the workspace?
The $tf folder existing based on the workspace, and the folder size is based on your projects. It keeps a hash and some additional information on all file in the workspace so that it can do change tracking for Local Workspaces and quickly detect the changes in the files.
Use the tf destroy command to destroy, or permanently delete, version-controlled files from Team Foundation version control. The destroy action cannot be reversed. You must not destroy files that are still needed.
TFS keeps a hash and some additional information on all file in the workspace so that it can do change tracking for Local Workspaces and quickly detect the changes in the files. It also contains the compressed baseline for your files. Binary files and already compressed files will clog up quite a bit of space. Simple .cs
files should stay very small (depending on your FAT/NTFS cluster size).
If you want to get rid of these, then set the Workspace type to a server workspace, but lose the advantages of local workspaces.
Deleting these files will be only temporarily since TFS will force their recreation as soon as you perform a Get operation.
You can reduce the size of this folder by doing a few things:
To setup a server workspace, change the setting hidden in the advanced workspace setting section:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With