title: How can I remove a Windows directory without following junction points?
body: <p>I have a Perl script that needs to delete a directory with all its contents.
  Sometimes this directory contains a junction point into another directory. If I <code>rmtree()</code> naively, the <code>rmtree()</code> call will also delete all the files inside the target folder of the junction. I'm looking for a way to not do that, and instead just remove the junction.</p>
  
  <p>Non Perl solutions would also be appreciated.</p>