Answers.Body: <p>The only two times Craft clears that folder is 1) at the end of an automatic or manual update and 2) when you have the "Temp files" checkbox checked under the "Clear Caches Tool" under <code>Settings-&gt;Tools</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-12T18:17:56.650Z
Answers.Text: Thanks for the quick response! I'll be sure to have the plugin delete the temporary files after they're used so the folder doesn't get huge.
Answers.UserDisplayName: John O
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-12T17:44:51.380Z
Answers.LastActivityDate: 2015-08-12T17:44:51.380Z
Answers.UserDisplayName: Brad Bell
Body: <p>This is somewhat related to the question at <a href="https://craftcms.stackexchange.com/questions/2665/where-should-a-plugin-create-temporary-files">Where should a plugin create temporary files</a></p>
  
  <p>I have a plugin that needs to store temporary files. Do I need to worry about cleaning up the craft/storage/runtime/temp after I'm done with them, or do they get deleted automatically on some kind of recurring basis?</p>
  
Tags: <plugin-development>
Title: Do temporary files stored in craft/storage/runtime/temp get automatically deleted?
ThreadText: # Do temporary files stored in craft/storage/runtime/temp get automatically deleted?
  
  (Asked by: username_0 on 2015-08-12)
  
  This is somewhat related to the question at [Where should a plugin create temporary files](https://craftcms.stackexchange.com/questions/2665/where-should-a-plugin-create-temporary-files)
  
  I have a plugin that needs to store temporary files. Do I need to worry about cleaning up the craft/storage/runtime/temp after I'm done with them, or do they get deleted automatically on some kind of recurring basis?
  
  **Tags:** plugin-development
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-12. Score: 2 | Accepted answer
  
  The only two times Craft clears that folder is 1) at the end of an automatic or manual update and 2) when you have the "Temp files" checkbox checked under the "Clear Caches Tool" under `Settings->Tools`.
  
  > **Comments:**
  > **username_0**: Thanks for the quick response! I'll be sure to have the plugin delete the temporary files after they're used so the folder doesn't get huge.  
  
  ---
  
  