Answers.Body: <p>Yes also the en_US subfolder. Actually <strong>especially</strong> that folder, since that's where the precompiled files get stored.</p>
  
  <p>You can also use the menu option under Administer -> System Settings -> Cleanup Caches, which will do it for you.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-12T19:08:24.907Z
Answers.Text: thanks for the answer.  I've just tried Cleanup Caches, but it seems not to have removed the subfolders.  so just to confirm - -I can remove everything in the templates_c folder?
Answers.UserDisplayName: dgk112
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-12T19:20:13.027Z
Answers.Text: It did delete it, but then as soon as the page reloaded it would have created it again to cache that page's template. You'll see there would have been less sub-subfolders. But yes can delete everything.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-12T19:42:47.570Z
Answers.Text: thanks - upgrade complete and all seems to have gone smoothly :)
Answers.UserDisplayName: dgk112
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-12T17:24:55.067Z
Answers.LastActivityDate: 2019-01-12T17:24:55.067Z
Answers.UserDisplayName: Demerit
Body: <p>I am following the wordpress upgrade procedure here:
  <a href="https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/" rel="nofollow noreferrer">https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/</a></p>
  
  <p>the instrucutions say to clear cached files by removing all files in the templates_c directory.</p>
  
  <p>I have a  subdirectory en_US within the templates_c directory which has many further subdirectories.  Am i supposed to delete these too?  or just the files in the template_c director itself?</p>
  
  <p>many thanks</p>
  
Tags: <upgrade>
Title: when upgrading should i delete all files AND all folders in templates_c directory?
ThreadText: # when upgrading should i delete all files AND all folders in templates_c directory?
  
  (Asked by: username_0 on 2019-01-12)
  
  I am following the wordpress upgrade procedure here:
  <https://docs.civicrm.org/sysadmin/en/latest/upgrade/wordpress/>
  
  the instrucutions say to clear cached files by removing all files in the templates\_c directory.
  
  I have a subdirectory en\_US within the templates\_c directory which has many further subdirectories. Am i supposed to delete these too? or just the files in the template\_c director itself?
  
  many thanks
  
  **Tags:** upgrade
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-12. Score: 2 | Accepted answer
  
  Yes also the en\_US subfolder. Actually **especially** that folder, since that's where the precompiled files get stored.
  
  You can also use the menu option under Administer -> System Settings -> Cleanup Caches, which will do it for you.
  
  > **Comments:**
  > **username_0**: thanks for the answer.  I've just tried Cleanup Caches, but it seems not to have removed the subfolders.  so just to confirm - -I can remove everything in the templates_c folder?  
  > **username_1**: It did delete it, but then as soon as the page reloaded it would have created it again to cache that page's template. You'll see there would have been less sub-subfolders. But yes can delete everything.  
  > **username_0**: thanks - upgrade complete and all seems to have gone smoothly :)  
  
  ---
  
  