Answers.Body: <p><a href="https://craftcms.com/docs/folder-structure#craft-storage" rel="nofollow noreferrer">Docs</a></p>
  <blockquote>
  <p>runtime/ – Pretty much everything in here is there for caching and logging purposes. Nothing that Craft couldn’t live without, if the folder happened to get deleted.</p>
  </blockquote>
  <p>It is safe to delete it</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T15:31:24.080Z
Answers.Text: Thanks. I felt as much but is always good to get a second opinion! Doing this reduced the server's inode usage from 30% to 5% and allowed me to transfer it across to my (smaller) dev server.
Answers.UserDisplayName: Clive Portman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T14:54:16.187Z
Answers.LastActivityDate: 2018-03-05T14:54:16.187Z
Answers.LastEditDate: 2020-06-17T08:56:27.903Z
Answers.UserDisplayName: Robin Schambach
Body: <p>I'm unable to transfer a site over to my development server because I keep getting problems with disk space. Space is actually fine, it's the number of inodes being used up. Using cPanel I get an error when using file manager to view the sessions folder, so I think that's the issue.</p>
  
  <p>Using the following command, which I think is the one for counting the number of files in a directory:</p>
  
  <pre><code>ls | wc -l
  </code></pre>
  
  <p>It looks like there are over 300,000 files in there. How safe is it to delete the entire directory?</p>
  
Tags: <session><storage>
Title: Is it safe to remove the craft/storage/runtime/sessions folder?
ThreadText: # Is it safe to remove the craft/storage/runtime/sessions folder?
  
  (Asked by: username_0 on 2018-03-05)
  
  I'm unable to transfer a site over to my development server because I keep getting problems with disk space. Space is actually fine, it's the number of inodes being used up. Using cPanel I get an error when using file manager to view the sessions folder, so I think that's the issue.
  
  Using the following command, which I think is the one for counting the number of files in a directory:
  
  ```
  ls | wc -l
  
  ```
  
  It looks like there are over 300,000 files in there. How safe is it to delete the entire directory?
  
  **Tags:** session, storage
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-03-05. Score: 3 | Accepted answer
  
  [Docs](https://craftcms.com/docs/folder-structure#craft-storage)
  
  > runtime/ – Pretty much everything in here is there for caching and logging purposes. Nothing that Craft couldn’t live without, if the folder happened to get deleted.
  
  It is safe to delete it
  
  > **Comments:**
  > **username_0**: Thanks. I felt as much but is always good to get a second opinion! Doing this reduced the server's inode usage from 30% to 5% and allowed me to transfer it across to my (smaller) dev server.  
  
  ---
  
  