title: Safely delete a TFS branch project
body: <p>I'm currently reorganising our TFS source control for a very large set of solutions, and I've done this successfully so far.</p>
  
  <p>I have a problem at the moment where I need to delete a legacy "Release Branch" TFS project that was branched for the old structure, and is no-longer required since I now host a release branch within the new structure.</p>
  
  <p>This is an example of how the source control now looks after moving everything:</p>
  
  <pre><code>$/Source Project
      /Trunk
          /[Projects]
      /Release
          /[Projects]
  
  $/Release Branch Project
      /[Projects]
      /[Other legacy stuff]
  </code></pre>
  
  <p>So far I've found information that says:</p>
  
  <ol>
  <li><a href="http://nomisit.wordpress.com/2007/12/06/deleting-a-branch-in-team-foundation-server/" rel="noreferrer"><code>tf delete /lock:checkout /recursive TestMain</code></a> to delete a branch.</li>
  <li><a href="http://msdn.microsoft.com/en-us/library/ms181482.aspx" rel="noreferrer"><code>TfsDeleteProject</code></a> to delete a project</li>
  </ol>
  
  <p><code>tf delete</code> seems to be only relevant when I need to delete a branch that is within the same project as the trunk, and <code>TfsDeleteProject</code> doesn't seem like it will delete the <em>branch association</em> from the source project (I hope I'm wrong, see below).</p>
  
  <p>Can someone tell me if the above will work, and in what order I should perform them in, to successfully delete the TFS <code>$/Release Branch Project</code> while also deleting the branch association (from right-click <code>$/Source Project</code> -> Properties -> Branches)?</p>