<p>The <code>storage</code> folder should be safe to empty out. In a vanilla Craft install, there shouldn't be anything in there that won't be regenerated (i.e. caches, compiled templates, etc), or that your Craft install can't function properly without (i.e. backups or temp files).</p>
<p>One thing to watch out for (and possibly retain) is the <code>storage/rebrand</code> folder. This folder contains your site's login page logo and site icon files (if you have uploaded those), and should probably not be deleted. The <code>rebrand</code> folder is often kept in version control, and other storage sub folders might also be.</p>
<p>TL;DR: Yes, it should be safe, but make sure that none of the storage sub folders being deleted are tracked in git.</p>

CC BY-SA 4.0
2024-04-24T21:36:31.023Z
2024-04-24T21:36:31.023Z
Mats Mikkel Rummelhoff
<p>I am moving a Craft CMS to new webhost and followed <a href="https://craftcms.com/knowledge-base/duplicating-a-craft-site" rel="nofollow noreferrer">this instruction</a>. I read in another Stackoverflow post and also on <a href="https://craftcms.com/docs/5.x/system/directory-structure.html#folders" rel="nofollow noreferrer">this page</a> that the /storage folder mainly contains cached, temporary files. Is it safe to empty the whole folder (incl. sub-folder) when migrating a site or is there anything to consider?</p>

<cache><migration><craft5><storage>
Can I empty the storage folder when migrating a Craft CMS site?
# Can I empty the storage folder when migrating a Craft CMS site?

(Asked by: username_0 on 2024-04-24)

I am moving a Craft CMS to new webhost and followed [this instruction](https://craftcms.com/knowledge-base/duplicating-a-craft-site). I read in another Stackoverflow post and also on [this page](https://craftcms.com/docs/5.x/system/directory-structure.html#folders) that the /storage folder mainly contains cached, temporary files. Is it safe to empty the whole folder (incl. sub-folder) when migrating a site or is there anything to consider?

**Tags:** cache, migration, craft5, storage

---

## 1 answers

### Answer by username_1 on 2024-04-24. Score: 2 | Accepted answer

The `storage` folder should be safe to empty out. In a vanilla Craft install, there shouldn't be anything in there that won't be regenerated (i.e. caches, compiled templates, etc), or that your Craft install can't function properly without (i.e. backups or temp files).

One thing to watch out for (and possibly retain) is the `storage/rebrand` folder. This folder contains your site's login page logo and site icon files (if you have uploaded those), and should probably not be deleted. The `rebrand` folder is often kept in version control, and other storage sub folders might also be.

TL;DR: Yes, it should be safe, but make sure that none of the storage sub folders being deleted are tracked in git.


---

