title: Msbuild - how to delete folder contents but not folder itself?
body: <p>Right now in my msbuild script is a task to delete a folder</p>
  
  <pre><code>&lt;RemoveDir Directories="$(Bin)"/&gt;
  </code></pre>
  
  <p>However I'd rather delete the <em>contents</em> of the folder but leave the folder be (in case someone has the folder open in Windows Explorer).  How can I do that?</p>