title: Creating a zip file on a disk with not enough space
body: <p>If you try to create a zip on a  disk with not enough space available.
  The method <code>system.IO.Compression.ZipFile.CreateFromDirectory()</code> will throw an exception and will let a zip file containing truncated files.</p>
  
  <p>Because the file is useless and take all the remaining memory, I would like to remove the zip file and here is what I have so far :</p>
  
  <pre><code>      try
          {
              System.IO.Compression.ZipFile.CreateFromDirectory(tempPath, pathToExport);
          }
        catch (Exception e)
          {
              if (File.Exists(pathToExport))
              {
                  File.Delete(pathToExport);
              }
          }
  </code></pre>
  
  <p>This do not work because the file is still used by the process.</p>
  
  <p>Any sugestion on how to release the file ?</p>