title: Jenkins, Job killed, Workspace locked
body: <p>I'm facing the below issue..
  Suppose you run a Jenkins job, this for some reason is killed by Jenkins, it could be for a timeout issue, or something like this...</p>
  
  <pre><code>Build timed out (after 40 minutes). Marking the build as aborted.
  Build was aborted
  </code></pre>
  
  <p>The problem is that during the next run of the same job, it fails due to:</p>
  
  <pre><code>ERROR: Cannot delete workspace: remote file operation failed: C:/Jenkins   /workspace/... at hudson.remoting.Channel@430a642f:WIN-CI: java.nio.file.FileSystemException: C:\Jenkins\workspace\....cucumber-html-report\report.js: The process cannot access the file because it is being used by another process.
  </code></pre>
  
  <p>Any Idea? It seems an issue of easy resolution, but it is not, because, it seems that the only way to delete the workspace, is stop the agent delete the worspace and restart the agent, this sounds a little bit in contrast with a solution that can be ran from jenkins, i mean, if the condition to delete the workspace is stop the agent, this cant be managed remotly...</p>
  
  <p>I think is something really common, so i'll wait for your great suggestion! :)</p>