title: delete file throw exception UnauthorizedAccessException?
body: <p>I am trying to delete file after I copy the file but I have this exception  </p>
  
  <pre><code>System.UnauthorizedAccessException was unhandled
    HResult=-2147024891
    Message=Access to the path 'C:\Users\---\Downloads\file.zip' is denied.
    Source=mscorlib
    StackTrace:
         at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
         at System.IO.File.InternalDelete(String path, Boolean checkHost)
         at CleanDownloadFolder.Program.CopyDirectory(String sourcePath, String targetPath) in c:\Users\Abdalla\Documents\Visual Studio 2012\Projects\CleanDownloadFolder\CleanDownloadFolder\Program.cs:line 48
         at CleanDownloadFolder.Program.Main(String[] args) in c:\Users\Abdalla\Documents\Visual Studio 2012\Projects\CleanDownloadFolder\CleanDownloadFolder\Program.cs:line 16
         at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
         at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
         at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
         at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
         at System.Threading.ThreadHelper.ThreadStart()
    InnerException: 
  
  
  C# code
       if (Path.GetExtension(fileName) == ".zip")
                          {
                              System.IO.File.Copy(s, destFile, true);
                              System.IO.File.Delete(s);
                          }
  </code></pre>