VB.Net Delete all files in folder
<p>I am trying to delete all files from single folder in VB.Net but to keep that folder.</p>

<p>As far as i know, i can delete files by this way:</p>

<pre><code>Dim heart17 As System.IO.FileInfo = New IO.FileInfo("path")
heart17.Delete()
</code></pre>

<p>And it works, but i need to empty a whole folder.</p>

<p>The folder path is </p>

<blockquote>
  <p><code>C:\Users\username\Desktop\Games</code>.</p>
</blockquote>

<p>I've read <a href="https://stackoverflow.com/questions/25221181/how-to-delete-all-the-files-in-a-folder-including-the-files-in-the-sub-folders-w">this question</a>, but it doesn't work for me (it has some errors or i did something wrong).</p>