<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>

CC BY-SA 3.0
2018-03-05T15:31:24.080Z
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.
Clive Portman
CC BY-SA 3.0
2018-03-05T14:54:16.187Z
2018-03-05T14:54:16.187Z
2020-06-17T08:56:27.903Z
Robin Schambach
<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>

<session><storage>
Is it safe to remove the craft/storage/runtime/sessions folder?
# 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.  

---

