title: How to delete file after upload using node?
body: <p>I am using multiparty to upload some file on the server, I have notice that when using <code>form.parse</code> a file is being added in temp in SO file system.</p>
  
  <p>I need to remove that file after form close but I cannot get information of file path.</p>
  
  <p>Any idea how to solve this problem?</p>
  
  <pre><code>function onUpload(req, res) {
    var form = new multiparty.Form();
  
    form.parse(req, function(err, fields, files) {
      onSimpleUpload(fields, files[fileInputName][0], res);
    });
  
    // Close emitted after form parsed
    form.on('close', function() {
      // cannot get file here to be deleted
    });
  }
  </code></pre>