As you can see in the screenshot below we have a client with a small seed drive of just 64 GB that was almost completely out of space. The image shows that they had 2.6 GB of space free but we took that after we had cleared 1.5 GB of garbage files. That took the pressure off so that the server was unlikely to crash but most certainly did not solve the problem.
We then used the free TreeSize utility (yes, we have a very old portable version that was completely free, even for corporate use, which we have posted HERE) and were shocked to find that the real culprit was the Windows Search Index database file, Windows.edb:
That got us to trying to figure out how to shrink the Windows.edb index file. There are several solutions to this but the easiest and fastest is simply to delete it and recreate it, But you don’t want to just right click on the file and click delete. That will not work because the file is in use and it would screw up your index. If you stop the service first and then deleted it here is how to properly delete and rebuild the Windows.edb:
This process will delete the old Windows.edb file and create a new one, but it will take a minute before you see much happen. Within a couple of minutes the items in INDEX THESE LOCATIONS will clear and the entire contents of C:\ProgramData\Microsoft\Search\Data\Applications\Windows folder will be magically deleted. A moment or two later, you will see that folder start to populate with new files and INDEX THESE LOCATIONS return its previous configuration.
Three other ways of dealing with a large Windows.edb file are to defragment it or move it to a different drive:
sc config wsearch start=disabled
net stop wsearch
esentutl.exe /d
%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.edb
sc config wsearch start=delayed-auto
net start wsearch
This will perform an offline defragmentation of the Windows.edb file2.
Remember that Windows does NOT need the Windows Search Index to perform searches. That service simply makes searches dramatically faster.
This website uses cookies.