title: TFS Workspace Cache
body: <p>I appear to have some problems with my workspace cache.  When I type:</p>
  
  <pre><code>tf workfold
  </code></pre>
  
  <p>In my workspace directory, I get the error: </p>
  
  <pre><code>Unable to determine the workspace
  </code></pre>
  
  <p><a href="http://social.msdn.microsoft.com/forums/en-US/tfsversioncontrol/thread/394025c9-e61a-48d1-a35f-9e611d21ca56/" rel="nofollow">This</a> article seems to imply that it’s a problem with the cache.  Being cautious, I tried removing a single workspace:</p>
  
  <pre><code>tf workspaces /remove:WORKSPACENAME /server:servername
  </code></pre>
  
  <p>This seemed to work (that is, the command succeeds), because if I do it a second time it fails.  However, when I issue:</p>
  
  <pre><code>tf workspaces
  </code></pre>
  
  <p>It still lists this workspace, and I still get the error.</p>
  
  <p>Can anyone give me any guidance of the next step here?  I assume what I’m deleting it the cache for the workspace and not the workspace itself, do I need to clear all my workspaces for this to work?  If so, why might this make any difference?</p>