# Large DB files; shouldn't that fix itself?

**URL:** <https://forums.plex.tv/t/large-db-files-shouldnt-that-fix-itself/930198>\
**Category:** Plex Media Server\
**Tags:** server-windows\
**Created:** [August 28, 2025, 7:28pm UTC](https://forums.plex.tv/t/large-db-files-shouldnt-that-fix-itself/930198 "2025-08-28T19:28:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterJansen68](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@PeterJansen68](https://forums.plex.tv/u/PeterJansen68)\
**Post date:** [August 28, 2025, 7:28pm UTC](https://forums.plex.tv/t/large-db-files-shouldnt-that-fix-itself/930198/1 "2025-08-28T19:28:17Z")

</div>

Server Version#: 1.42.1.10060  
Player Version#: -

Since a couple of months the database files in the ..\Plex Media Server\Plug-in Support\Databases folder have become very large. Screenshot of the files in question (after I just removed 2 of the backup files, the ones with the dates at the end):

 ![image](https://global.discourse-cdn.com/plex/original/4X/8/d/0/8d027507e77826a7374f50ac0a73b5f767f4af90.jpeg)

I read somewhere that this was an issue in a version from a little while ago (month or 2?) which was saving too much data (or something), and that it would fix itself as data would become obsolete and would get deleted. I’m not seeing that happen though, or should I be more patient?

Thanks

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [August 28, 2025, 10:20pm UTC](https://forums.plex.tv/t/large-db-files-shouldnt-that-fix-itself/930198/2 "2025-08-28T22:20:16Z")

</div>

See this post: [Library.db size more than doubled in latest version - #410 by OttoKerner](https://forums.plex.tv/t/library-db-size-more-than-doubled-in-latest-version/918851/410)

Save the formatted text as a .bat file (repair.bat, deflate.bat, etc.), then stop Plex Media Server and run the bat file from a CMD prompt (c:).

You can click in the upper right corner of the text box to copy everything to the dashboard. Then paste it into a text file, save it, and rename it to end in .bat instead of .txt.

Plex Media Server must be stopped when you run the file. Do not stop the cleaning process once it starts. It may take an hour or more to complete. When finished, the com.plexapp.plugins.library.db file will be its normal size.

Then start Plex Media Server and make sure it is working OK. When you comfortable Plex is OK, you can delete the backup database files (the files with the dates appended).

  

Additional information is in the (very long) thread linked above. The [first post](https://forums.plex.tv/t/library-db-size-more-than-doubled-in-latest-version/918851) has a short summary and links to the detailed information.

---

<div class="post-metadata">

**Author:** ![PeterJansen68](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@PeterJansen68](https://forums.plex.tv/u/PeterJansen68)\
**Post date:** [August 29, 2025, 1:25pm UTC](https://forums.plex.tv/t/large-db-files-shouldnt-that-fix-itself/930198/3 "2025-08-29T13:25:09Z")

</div>

Awesome! After 2 hours went from 103 Gb to 134 Mb 😊 . Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 27, 2025, 1:25pm UTC](https://forums.plex.tv/t/large-db-files-shouldnt-that-fix-itself/930198/4 "2025-11-27T13:25:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
