On Windows 10, the “Windows.edb” is the database that stores the indexing content for the Windows Search feature to provide faster results for files, emails, and other contents.
Although it’s an essential system file (located in %ProgramData%\Microsoft\Search\Data\Applications\Windows
), over time, it can grow very large as you store more files on your device. Also, if you use an email client like Outlook and Search is configured to index a PST file, the size of the Windows.edb database can eventually become a huge file (hundreds of gigabytes), making the system unusable and preventing you from storing any more files.
If you notice that the ProgramData is too big, or you have already identified that the Windows.edb is the reason your computer is running out of space, there are at least two workarounds to reduce the size of the Windows Search database.
This guide will teach you the steps to delete (and reduce the size of) the Windows.edb database file when it has grown very large, you’re running out of space, and you can no longer operate your Windows 10 computer.
Delete Windows.edb file on Windows 10
To delete and recreate the Windows.edb file, use these steps:
-
Open Settings on Windows 10.
-
Click on Search.
-
Click on Searching Windows.
-
Click the “Advances Search Indexer Settings” option.
-
Click the Advanced button.
-
Under the “Troubleshooting” section, click the Rebuild button to delete the Windows.edb 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 Windows.edb file will be deleted and replaced with a new smaller version to index the Windows Search database file returning the “ProgramData” folder and Windows.edb file to their normal size.
Reduce Windows.edb file size on Windows 10
Alternatively, if you don’t want to rebuild the index database on Windows 10, you can defrag the Windows.edb to reduce its size.
To defragment the Windows.edb database to reduce its size on Windows 10, use these steps:
-
Open Start.
-
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
-
Type the following command to prevent Windows Search from starting automatically and press Enter:
sc config wsearch start=disabled
-
Type the following command to stop the search service and press Enter:
net stop wsearch
-
Type the following command to defrag the Windows.edb file to make it smaller and press Enter:
esentUtl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb
-
Type the following command to delay the Windows Search during startup and press Enter:
sc config wsearch start=delayed-auto
-
Type the following command to start the search service on Windows 10 and press Enter:
net start wsearch
After you complete the steps, the process should reduce the size of the Windows.edb file reclaiming a lot of space on the hard drive making your device operational one more time.
If you don’t have a lot of files but you use the Outlook app, it’s also recommended to reduce the number of emails that client downloads to prevent the database from growing too big quickly.