I was presented with the Windows .edb file not long ago, since I mainly use macOS and Linux. This is a pain for some Windows users working on a limited storage space set by their company.
The .edb file in Windows, particularly Windows.edb, is a database file used by the Windows Search service to store indexing information for faster search results. Over time, this file can grow significantly, consuming a lot of disk space. Here’s how to address the issue:
Stop the Windows Search Service
Stopping the Windows Search service will help prevent the .edb file from being in use, allowing you to take action.
- Open the Start Menu and type
services.msc, then press Enter. - Scroll down to find Windows Search.
- Right-click on Windows Search and select Stop.
You can double check the Windows .edb file size if you like located at:
C:\ProgramData\Microsoft\Search\Data\Applications\WindowsRebuild the Search Index for Windows .edb file
Rebuilding the search index can often resolve issues with the .edb file growing too large.
- Open the Control Panel.
- Go to Indexing Options.
- Click on Advanced.
- Under Troubleshooting, click Rebuild.
Reduce Indexed Locations
You can reduce the number of locations being indexed to prevent the .edb file from growing too large again.
- Open Indexing Options from the Control Panel.
- Click Modify.
- Uncheck unnecessary locations to reduce what gets indexed.
- Click OK to apply the changes.
You can also try to defrag the the index by using the below commands:
esentutl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb- Run the following command to change the Windows Search service to delayed start:
Sc config wsearch start=delayed-autoThen start the service:
Net start wsearchRemember you can always contact me if you have any questions or want to collaborate. Also, make sure to check my cool inspirational hats designs. Thanks!

