title: What is the Win32 API function to use to delete a folder?
body: <p>What are the Win32 APIs to use to programically delete files and folders? </p>
  
  <p><strong>Edit</strong></p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/aa363915(VS.85).aspx" rel="noreferrer">DeleteFile</a> and <a href="http://msdn.microsoft.com/en-us/library/aa365488(VS.85).aspx" rel="noreferrer">RemoveDirectory</a> are what I was looking for. 
  However, for this project I ended up using <a href="http://msdn.microsoft.com/en-us/library/bb762164(VS.85).aspx" rel="noreferrer">SHFileOperation</a>. 
  I found the <a href="http://www.codeguru.com/forum/showthread.php?t=239271" rel="noreferrer">sample code</a> at CodeGuru helpful. </p>