title: Cleaning temporary files after file upload with restify
body: <p>I am building a node storage server with <code>restify</code>. I am processing uploads via <code>restify.bodyParser</code>, which under the hood uses <code>formidable</code>. </p>
  
  <p>Formidable stores files in <code>os.tmpDir()</code> by default, and I need to change that to some other folder, and so I did via <code>restify.bodyParser({uploadDir: '/path/to/new/tmp'})</code>. </p>
  
  <p>The problem is that those temporary files are kept in the tmp directory even after I finish processing the request. </p>
  
  <p>I have seen this question (<a href="https://stackoverflow.com/questions/17843806/handling-temporary-files-after-upload">Handling Temporary Files after upload</a>), that supposes to just delete the tmp file after processing it. </p>
  
  <p>My question is, do you need to always manually remove the file? Even with the default <code>os.tmpDir()</code> directory? How does the default system tmp folder work? Does it flush itself sometimes?</p>