Created
November 17, 2015 18:32
-
-
Save anonymous/9bdf73a7b3d36cec2b89 to your computer and use it in GitHub Desktop.
clears the tfs cache for visual studio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = "Stop" | |
$directory = [io.path]::combine($env:LOCALAPPDATA, "microsoft", "team foundation") | |
foreach($versionDirectory in get-childitem $directory) | |
{ | |
$cacheDirectory = Join-Path $versionDirectory.FullName "Cache" | |
$items = Get-ChildItem $cacheDirectory | |
foreach($item in $items) | |
{ | |
Remove-Item -Recurse -Force $item.FullName | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment