18

Recently I've been having issues with my personal laptop's hard drive running out of space.

After scanning my PC with WinDirStat I noticed a file named "Windows.db" (located in C:/ProgramData/Microsoft/Search/Data/Applications/Windows) taking up 116 GB(!) of memory on my hard drive. I believe it's a Windows search index database.

Is it safe to delete this file to free up space?

NOTE: My PC is running on Windows 11.

RobertF
  • 283

2 Answers2

18

It is the database for Windows search indexing indeed. You can either safely:

  1. Rebuild it. Do that by either searching Indexing options or launching them through Control Panel after showing all icons. Then go to Advanced and click Rebuild. Doing that might reduce its size heavily. It will grow later though.
  2. Disable indexing or choose less locations to index. Again go to Indexing options but click Modify this time. Choose only folders that have files that need to be found quickly. Or don't choose anything if you use app like Everything which is generally faster and less space-consuming. Rebuild index after that to make sure it applies the new settings.
  3. Disable Windows Search service temporarily and then delete the file manually. First two options are much more recommended though.
Destroy666
  • 12,350
8

You are correct. The Windows.db file is used for Search Indexing. 116 GB is quite large and rebuilding it will likely result in a much smaller size. For example, mine is only ~800MB.

Delete and Rebuild

You can have Windows delete and rebuild the search index via "Indexing Options" in the Windows "Control Panel":

  1. Open Control Panel and click on the Indexing Options icon
    or: WIN+R then type control.exe srchadmin.dll and click OK
  2. Click on the Advanced button
  3. Click the Rebuild buton

Note: while the Indexing database is being rebuilt, using searches may be very slow or incomplete.

Troubleshoot Windows Search: Performance Tuning

Blindspots
  • 3,472