I am trying to delete a UNC directory on Windows. I have found ways to do this using system commands, but I would prefer to do this within Perl. I have tried rmtree, and I tried using finddepth where I unlink files and rmdir empty directories. unlink works in this latter case but rmdir does not. Any suggestions?