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:
-
Open Settings on Windows 11.
-
Click on Privacy & security.
-
Click the Searching Windows tab.
-
Under the “Related settings” section, click on Advanced indexing options.
-
Click the Advanced button.
-
Under the “Troubleshooting” section, click the Rebuild button to delete the “Windows.db” file.
-
Click the OK button.
-
Click the Modify button from the “Indexing Options.”
-
Clear the Microsoft Outlook option.
-
Click the OK button.
-
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.