# How to reduce Pinegrow database size?

**URL:** <https://forum.pinegrow.com/t/how-to-reduce-pinegrow-database-size/8819>\
**Category:** Pinegrow WordPress Plugin\
**Created:** [March 28, 2024, 6:45pm UTC](https://forum.pinegrow.com/t/how-to-reduce-pinegrow-database-size/8819 "2024-03-28T18:45:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ltsuser](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@ltsuser](https://forum.pinegrow.com/u/ltsuser)\
**Post date:** [March 28, 2024, 6:45pm UTC](https://forum.pinegrow.com/t/how-to-reduce-pinegrow-database-size/8819/1 "2024-03-28T18:45:51Z")

</div>

I keep getting emails from my web host that the pg\_files table is too large for my server. (The server is on the smaller size, 5gb, but I only use it for building/testing.) I’m unsure how to reduce it without removing the plugin and deleting the table. Has anyone else had this problem? Are there any files inside the table that are safe to delete?

---

<div class="post-metadata">

**Author:** ![Riccarcharias](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/riccarcharias/32/4051_2.png) [@Riccarcharias](https://forum.pinegrow.com/u/Riccarcharias)\
**Post date:** [March 29, 2024, 6:18am UTC](https://forum.pinegrow.com/t/how-to-reduce-pinegrow-database-size/8819/2 "2024-03-29T06:18:41Z")

</div>

Hi,

Do you mean the size of the folder pg\_backup? That folder contains backups of your website and can get quite big over time. You don’t need to upload this folder on your server.

---

<div class="post-metadata">

**Author:** ![ltsuser](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@ltsuser](https://forum.pinegrow.com/u/ltsuser)\
**Post date:** [March 29, 2024, 5:14pm UTC](https://forum.pinegrow.com/t/how-to-reduce-pinegrow-database-size/8819/3 "2024-03-29T17:14:09Z")

</div>

No, it was definitely the pg\_files table. However, I think I fixed it. I deleted my revisions (there were a _ton_ of them, unbeknownst to me) and deleted every image from my project. That alone reduced a 5GB table to a 60MB table, which is kind of crazy. I checked it again this morning and it’s now 150MB. I guess it’s just the revisions? I just have to keep remembering to delete them, but I’m glad that there’s a solution.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [March 30, 2024, 9:09pm UTC](https://forum.pinegrow.com/t/how-to-reduce-pinegrow-database-size/8819/4 "2024-03-30T21:09:05Z")

</div>

Hello @ltsuser

Indeed, having too many revisions can take some storage, still 5GB is a lot, particularly when resources such as images are stored separately …

Is it possible for you to send us an export of the website? (follow our instructions from the support page here: [Contact Us | Pinegrow Web Editor](https://pinegrow.com/contact-us/#some-tips-to-optimize-your-support-request))

Thanks.
