How to fix large Windows.db on Windows 11

When your computer is running out of space, and you can't figure out why, it's probably the indexing database taking up the storage hostage. Here's the fix on Windows 11.

Windows 11 fix Windows.db
Windows 11 fix Windows.db

On Windows 11, the “Windows.db” is the database containing the indexing information for Windows Search to provide faster results for files, emails, and other contents.

The database is essential to the operating system, but sometimes it can unexpectedly start taking up a lot of space due to the number of files you have on the computer. In addition, if you use email clients (such as Outlook) and Windows Search is configured to index a PST file, the size of the “Windows.db” database can also cause the system to run out of storage.

If you notice that your computer is running low on space when you don’t have a lot of files or the “ProgramData” folder is oddly large, Windows 11 offers a way to reduce the size of the database.

This guide will teach you the steps to delete (and reduce the size of) the “Windows.db” database, causing storage issues on Windows 11.

Rebuild Windows.db file to free up space on Windows 11

To delete and recreate the Windows.db file on Windows 11, use these steps:

  1. Open Settings on Windows 11.

  2. Click on Privacy & security.

  3. Click the Searching Windows tab.

  4. Under the “Related settings” section, click on Advanced indexing options.

    Advanced indexing options

  5. Click the Advanced button.

    Indexing Options advanced button

  6. Under the “Troubleshooting” section, click the Rebuild button to delete the “Windows.db” file.

    Delete and rebuild Windows.edb file

  7. Click the OK button.

  8. Click the Modify button from the “Indexing Options.”

  9. Clear the Microsoft Outlook option.

    Windows Search stop indexing emails (PST)

  10. Click the OK button.

  11. Click the Close button.

Once you complete the steps, the system will delete and recreate the “Windows.db” database freeing up many gigabytes of space on Windows 11.

About the author

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me.