T

How to Reduce a Large Windows.edb File Size

44 views · updated 2026-07-01 · published 2026-07-01 · by Hasarinda Manjula · Microsoft Windows Reading time: 3 min English සිංහල

Overview

Windows.edb is the database that powers Windows Search. Over time it can grow to several gigabytes and quietly fill your C: drive. This guide explains what the file is and how to shrink it safely by rebuilding the search index or compacting the database.

The Windows.edb search-index database can grow very large over time.

Key Takeaways

  • Windows.edb is the Windows Search index database — it is safe to rebuild.
  • Rebuilding the index recreates a smaller file.
  • Compacting (defragmenting) the database with esentutl reclaims space without a full rebuild.
  • You must stop the Windows Search service before compacting the file.

What Is the Windows.edb File?

It stores the search index that lets Windows find files and content quickly. It lives at C:\ProgramData\Microsoft\Search\Data\Applications\Windows. It grows with the amount of indexed content and can become bloated, but it is regenerated automatically if removed or rebuilt.

Method 1 — Rebuild the Search Index

1. Press Windows key + R, type control /name Microsoft.IndexingOptions, and press Enter.

2. Click Advanced.

3. Under Troubleshooting, click Rebuild and confirm.

4. Windows recreates the index — the Windows.edb file shrinks as it rebuilds (this can take a while).

Tip: You can also reduce future size by clicking Modify in Indexing Options and removing locations you do not need indexed.

Method 2 — Compact the Database With esentutl

1. Open Command Prompt as administrator.

2. Stop the search service: net stop "Windows Search"

3. Compact the database: esentutl /d "C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb"

4. Restart the service: net start "Windows Search"

Note: Compacting reclaims free space inside the database without rebuilding the whole index, so it is faster than a full rebuild.

Optional — Disable or Limit Indexing

  • To stop the file growing, open Indexing Options > Modify and untick large locations you rarely search.
  • To disable search indexing entirely, set the Windows Search service to Disabled in services.msc (search becomes slower but the file stops growing).

Troubleshooting

Problem: esentutl says the file is in use.

Solution: Stop the Windows Search service first (net stop "Windows Search"), then run the compact command.

Problem: The file grows back quickly.

Solution: Reduce the indexed locations in Indexing Options > Modify, so less content is stored in the database.

Problem: Search stops working after changes.

Solution: Restart the Windows Search service and rebuild the index; it will repopulate over time.

Problem: Rebuild takes a very long time.

Solution: That is normal for large drives. Leave the PC on and connected to power; indexing runs in the background.

Conclusion

A bloated Windows.edb is easy to tame. Rebuild the search index for a fresh, smaller database, or compact it with esentutl to reclaim space quickly — and trim indexed locations to keep it from growing again.

</w:pBdr><w:spacing w:before="220" w:after="40"/></w:pPr><w:r><w:rPr><w:b/><w:bCs/><w:color w:val="0B5394"/><w:sz w:val="21"/><w:szCs w:val="21"/><w:rFonts w:ascii="Calibri" w:cs="Calibri" w:eastAsia="Calibri" w:hAnsi="Calibri"/></w:rPr><w:t xml:space="preserve">About TechHub

This guide is part of the TechHub Knowledge Base. For more step-by-step IT guides and support, visit techhub.com.lk.

Thanks for your feedback! 🙌

Read more

TechHub Assistant
Online · AI assistant
Thinking
⬇ Downloads 📦 Orders 🛒 Buy License 🎫 Create Ticket 🙋 Contact
AI-generated · may be inaccurate. Talk to a human