# S3 assets folder, is a cleanup needed?

**URL:** https://meta.discourse.org/t/s3-assets-folder-is-a-cleanup-needed/230367
**Category:** Self-hosting
**Tags:** s3
**Created:** [June 18, 2022, 11:12am UTC](https://meta.discourse.org/t/s3-assets-folder-is-a-cleanup-needed/230367 "2022-06-18T11:12:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [June 18, 2022, 11:12am UTC](https://meta.discourse.org/t/s3-assets-folder-is-a-cleanup-needed/230367/1 "2022-06-18T11:12:36Z")

</div>

I’m using Scaleway object storage for nearly 2 years now, almost flawlessly, but for the first time S3\_upload has timed out during the last rebuild, network issue? maybe… worked the second time, but it made me looked inside the bucket and I was surprised to see the assets piling up:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/0/5/705ab066e11fc438567a9d33b5b3e282a80e3e8d.png)

Am I missing something ? (beside the fact that, full disclosure 😅, I don’t have any cdn configured, this is a tiny tiny tiiiiny instance)

Should I rename the assets folder before a rebuild and if everything goes as planned, delete it ?

---

<div class="post-metadata">

### Author: ![Wolftallemo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wolftallemo/32/289645_2.png) [@Wolftallemo](https://meta.discourse.org/u/Wolftallemo)
#### Post date: [June 18, 2022, 7:10pm UTC](https://meta.discourse.org/t/s3-assets-folder-is-a-cleanup-needed/230367/2 "2022-06-18T19:10:10Z")

</div>

[Scaleway S3 was having issues earlier](https://status.scaleway.com/incidents/q3gzh9nxzxwy)

Although if there’s a lot of old asset files, deleting the old ones may save you a few cents in storage costs, but I wouldn’t consider that to be worth spending the time to remove the old ones.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [June 18, 2022, 8:58pm UTC](https://meta.discourse.org/t/s3-assets-folder-is-a-cleanup-needed/230367/3 "2022-06-18T20:58:38Z")

</div>

I am using [Object Storage for Uploads (S3 & Clones)](https://meta.discourse.org/t/using-object-storage-for-uploads-s3-clones/148916) and it used to be that I deleted the assets folder and run rebuild uploaded only the latest, current files again. But as you write you can rename the assets folder and run a rebuild to check everything works fine. After it creates and upload the new files you can delete the old assets folder.
