title: File.Delete = IOException (file still in use by other process)
body: <p>I´m having a little problem with my application. With my application I want to download some files via webclient.DownloadFileAsync and in case the user quits the program while a download is still running, I want to cancel that webclient-process &amp; delete the file as well.</p>
  
  <p>I already tried it with the following code, but it´s not quite working as I´m always getting a IOException (file in use by other process).</p>
  
  <pre><code>            for (z = 0; z &lt; CheckedCount; z++)
          {
              MultiWebclient[z].CancelAsync();
              MultiWebclient[z].Dispose();
  
              dgvDownloads.Rows[z].Cells[5].Value = "Canceled";
              File.Delete(selectedFolder + _downloadRowNameList[z] + ".mp4");
          }
  </code></pre>