title: Should I delete uploaded files from the file system on my own?
body: <p>I have a rails app where the user can upload files. The files get uploaded to an external cloud service by a backgroud jobs. It's vital for my app that the files won't get stored in the file system after they've been uploaded. Not right away, in general -- they must not remain in the file system. </p>
  
  <p>Should I delete them on my own? Or will get deleted automatically?</p>
  
  <p>Also, debugging my app, I noticied this for an attachment params:</p>
  
  <pre><code>[2] pry(#&lt;MyController&gt;)&gt; my_params.tempfile.path
  "/var/folders/qr/0v5z71xn7x503ykyv1j6lkp00000gn/T/RackMultipart20181007-10937-3ntmgg.png"
  </code></pre>
  
  <p>That file gets stored not in "/tmp" but in "/var" and that means that it won't get deleted automatically, right?</p>
  
  <p>Note that I'm not using paperclip for this task.</p>