Deleting folder throws an exception ...directory is not empty
<p>Hi I am trying to delete a folder and anything ti has under it but I seem to have no luck.
My code deletes the contents of the folder but not the folder itself and it throws an exception stating that the folder is not empty.</p>

<p>Here is my code:</p>

<pre><code>Directory.Delete(HostingEnvironment.MapPath(Path.Combine(path , product.ProductId.ToString())) , true);
</code></pre>

<p>How can I make the code also delete the folder?</p>
