Fix Windows.edb large file size Problem in Windows 10 / 11

Are you also facing windows.edb huge size problem. Windows.edb file is an indexed database file of the documents on a device. Windows itself build this database file to rapidly increase the search speed. But in this process, the size of the Windows.edb file increases upon the introduction of new files and documents over time. This can slow down your computer. But if you try to delete the file you will see an error message, “This action can’t be completed because the file is open in Windows Search“.

Follow these easy fixes if you are trying to delete Windows. edb file on your computer-

Fix-1 Defragmenting the Windows.edb to reduce size

The most effortless way to fix this issue is to defragment the Search index on your device.

Stopping Windows Search and deleting the Windows. edb file on your computer should solve the issue.

Step-1 Kill Searchindexer.exe process-

1. Right-click on the Windows icon and then click on the “Task Manager“.

 

Task Manager

 

2. In the Task Manager window, go to the “Details” tab.

3. Now, scroll down to the “Searchindexer.exe” process. Right-click on “End task“.

 

Windowsearch End Task

 

Close the Task Manager window.

 



Step-2 Stop Windows Search service-

1. Press Windows key+R to open the Run window.

2. In the Run window, type “services.msc” and then hit Enter.

 

Services

 

3. In the Services window, scroll down to the “Windows Search” service.

4. Double click on Windows search service.

5. Choose startup type as disabled.

6. Click on stop to stop the service.

 

Disable3

 

7.  Now, Search cmd in Windows 10 search box.

8. Right click on Command prompt and choose run as administrator.

Cmd Run As Admin

 

9. Now, run the commands given below and hit Enter.

cd /d %ProgramData%\Microsoft\Search\Data\Applications\Windows

Now, run the command given below to defragment and reduce size of windows.edb file.

esentutl.exe /d Windows.edb

Note that if it gives an error that database was not shutdown cleanly , then run the command given below .

esentutl.exe /r Windows.edb

Now, try to run esentutl.exe /d Windows.edb again.

Once you have executed all these commands on your computer. Close the Command Prompt window.

10. Go to service manager window again and double click on windows search.

11. Choose Startup Type as Automatic Delayed start, and click on start to start the service.

Automatic Delayed

Check if you are facing the same problem or not.

 

Fix-2 Delete and re-build Windows. edb file

Stopping Windows Search and deleting the Windows. edb file on your computer should solve the issue.

Step-1 Kill Searchindexer.exe process-

1. Right-click on the Windows icon and then click on the “Task Manager“.

 

Task Manager

 

2. In the Task Manager window, go to the “Details” tab.

3. Now, scroll down to the “Searchindexer.exe” process. Right-click on “End task“.

 

Windowsearch End Task

 

Close the Task Manager window.

 

Step-2 Stop Windows Search service-

1. Press Windows key+R to open the Run window.

2. In the Run window, type “services.msc” and then hit Enter.

 

Services

 

3. In the Services window, scroll down to the “Windows Search” service.

4. Right-click on it and then click on “Stop” to stop the service.

 

Search Stop

 

Now, close the Services window.

 

Step-3 Delete Windows.edb file-

1. Press Windows key+E which will open the File Explorer window.

2. In the File Explorer window, click on “View“.

3. Then click on “Options“.

 

View And Options

 

4. Press Windows key and S key together to open windows search box and then search File explorer options and click on it to open file explorer options.

5. Choose View Tab.

Now, scroll down and check the option “Show hidden files, folders and drives“.

 

View Show Hidden



 

6. Simply click on “Apply” and then on “OK“.

 

Apply Ok

 

7.  Now, navigate to this location on your computer-

C:\ProgramData\

 

Now, Go to

  • Microsoft
  • Search
  • Data
  • Applications
  • Windows

Windows Edb

 

8. Right-click on the “Windows.edb” file and then click on “Delete“.

 

Windowsedb Delete

 

Close the File Explorer window.

 

Step-4 Rebuild Search index-

1. Press Windows key+R to open the Run window.

2. In the Run window, type “services.msc” and then hit Enter.

 

Services

 

3. In the Services window, scroll down to the “Windows Search” service.

4. Double click on Windows search service.

5. Choose Startup Type as Automatic Delayed start, and click on start to start the service.

Automatic Delayed

6. Go to service manager window again and double click on windows search.

7. Choose Startup Type as Automatic Delayed start, and click on start to start the service.

Automatic Delayed

8. Click on the Search box and type “Indexing Options“.

9. Now, click on the “Indexing Options” in the search result.

 

Indexing Options

 

10. In the Indexing Options window, click on the “Advanced“.

 

Advanced

 

11. Now, in the section ‘Troubleshooting‘ section, click on the “Rebuild” option.

 

Rebuild

 

10. If you receive any prompt, click on “OK” to save the change.

 



Ok

 

Wait for a while as Windows rebuilds the index database (aka Windows.edb) file.

 

Fix-3 Change Windows. edb file location

Changing Windows. edb file location to another drive or location may make things convenient for you if your C drive is getting full due to this.

1-Press Windows key+S and then type “Indexing Options“.

2. Now, click on the “Indexing Options” in the search result.

 

Indexing Options

 

3. In the Indexing Options window, click on the “Advanced“.

 

Advanced

 

4. Go to the “Indexing Settings” tab.

5. In the ‘Index location‘ section, click on “Select New“.

 

Select New

 

6. In the Browse For Folders window, click on the “Local Disk (C:)” drive.

7. Now, click on the “Make New Folder“.

 

New Folder

 

8. Now, click on the “New folder“.

9. Then, click on “OK“.

 

New Ok

 

Wait for a while as Windows will create Windows.edb file on this new location.