63

I have Windows Vista on a machine and I noticed quite a bit of hard drive was disappearing. I ran a utility to show me where it all went. I found the following directory consumes over 2GB of space: C:\ProgramData\Microsoft\Search\Data\Applications\Windows.

The Microsoft Search service is now disabled, but I want it removed completely. I see nothing on Add/Remove Programs. Also, will I get blue screens if I delete this directory?

73

Here's what I had to do:

  • open services.msc
  • Stop the Windows Search service (I was this far already).
  • Rename C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb
  • Start the Windows Search service
  • The directory rebuilds Windows.edb (34 MB initial size in my case)
  • Open Control Panel / Indexing Options
  • Wait a long time for buttons to become enabled
  • Click Modify
  • Uncheck Users directory or whatever else you don't want indexed (I left Start Menu enabled because it's so small)
  • Click Ok
  • Stand on your head and count to three while drinking water with a straw. (not sure if this part is necessary but I wanted to try everything I could)

It now says indexing complete with only 800 or so items. Total size of the directory is now just over 48 MB. Pretty large index if you ask me, but better than 2 GB.

| improve this answer | |
  • Another option is simply to move the Search Index to another disk with more available capacity: in the Indexing Options control panel item, click the Advanced button, and on the Index Settings tab, the Index Location may be changed. It appears that changing the location and clicking OK causes Windows to move the index file immediately, despite implying that the service must be restarted for the change to take effect. – Ben Johnson Feb 28 '19 at 19:58
  • Instead of renaming/deleting it and forcing a rescan of your disk, you could try defragging it: support.microsoft.com/en-gb/help/2838018/… - esentutl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb – mwfearnley Feb 25 at 17:07
16

Open an administrator command prompt and type

net stop "Windows Search"
del %PROGRAMDATA%\Microsoft\Search\Data\Applications\Windows\Windows.edb
net start "Windows Search"

Repeat when needed.

| improve this answer | |
  • 6
    But what's the point of doing this? Again and again... That's like emptying a bucket under a hole in your roof instead of fixing that hole. Why would you do that unless you enjoy emptying a bucket? If you don't want to have a big search index and you don't use the Search feature, simple uninstall it or remove some directories from the search indexer. – David Ferenczy Rogožan Feb 29 '16 at 11:35
  • 1
    Instead of renaming/deleting it and forcing a rescan of your disk, you could try defragging it: support.microsoft.com/en-gb/help/2838018/… - esentutl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb – mwfearnley Feb 25 at 17:08
  • Simple, fast and efficient ... and it can also be included in a simple script. – Peppo Jul 10 at 8:28
6

Control Panel\All Control Panel Items\Programs and Features\Turn Windows features on or off/ then unchek windows search

| improve this answer | |
  • This should be the correct answer – pepan Nov 2 '17 at 10:32
5

To delete and rebuilt the index :

  1. Control Panel\All Control Panel Items\Indexing options
  2. Click Advanced
  3. under Troubleshooting, click rebuilt

You may want to change which folder you wish to include in the index before doing step 3. For that in step 2 instead of clicking Advanced, select Modify

| improve this answer | |
2

Those that wish to keep Windows Search working, but don't want the index file taking up space on the boot drive, can change the location the index is located.

Launch Indexing Options, click Advanced, and - in the Index location panel, populate the New location, after service is restarted to a folder on another disk drive.

You'll have to restart the service (or restart your pc if you find that easier) in order for the change to take place.

| improve this answer | |
1

If you open the search tool and then click on the "details" drop down on the right hand side (next to the "?" icon) there's a menu called "Search Options..". Open that dialog and you can modify which folders are being indexed.

By removing folders from the Indexed Locations (by clicking on "Modify") the indexer will remove the data associated with these folders thus freeing up your disk space.

| improve this answer | |
1

On Windows 10, there is now a menu explicitly for this.

  • Open Indexing Options
  • Click Modify
  • On this new window, you can click on the items in the bottom panel and uncheck their subfolders in the top panel
  • Once you are satisfied with your new indexing options, click OK to go back to the previous window
  • Click Advanced
  • Click Rebuild in the Troobleshooting section

Doing this I managed to cut down from 1.5GB to 10MB by only keeping the Start Menu indexed (I could have kept some document folders too but I wanted to drastically optimize).

| improve this answer | |
  • 1
    thank you , that was that I'm looking for – Sérgio Feb 8 at 0:29
-2

I think I actually solved it, at least on my machine. EDGE that blood sucker... turn of sync options in edge browser... it has a feature called sync on all devices that uses your windows login that override everything else :-(

| improve this answer | |
  • 3
    Given that this question was asked in 2009, it cannot have been caused by Microsoft Edge, which was first released in 2015. – Scott Mar 4 '19 at 0:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.