A question I’ve had a few times is how can you delete folders from your local workspace without deleting them from the server. This question usually comes up when someone has done a get of a large area and wants to free up some local disk space.
Just deleting the folder using Windows Explorer works but it has a problem, Team Foundation Server still thinks you have that folder, so if you try to get the folder (or one of its children) from source-control in the future then Team Foundation Server won’t download it unless you use Get Specific Version and choose the Force get of file versions already in workspace option.
The solution is to cloak the folder, perform a get on the folder and then remove the cloak. When you do a get of a cloaked folder Team Foundation Server removes the local version from your workspace, thus freeing up your much needed disk space.
To cloak a folder simply edit the appropriate workspace and add an additional folder mapping with a status of Cloaked.