DEV Community

Dhaval Upadhyay
Dhaval Upadhyay

Posted on

Windows Secretly Ate 83GB of My Disk Space — The Hidden .db-wal File Nobody Talks About

A few days ago my Windows PC had around 57GB free space.

Suddenly it dropped to:

  • 4GB free
  • then 2GB free

The weird part:

I had not installed any new software
no large downloads
temp files cleanup barely recovered MBs

At first I thought:

  • Windows Update issue
  • Docker issue
  • browser cache
  • restore points

But the real culprit was something I had never seen before.

How I Found the Problem

I installed:

  • WinDirStat

After scanning the C: drive, I noticed:

ProgramData = 100GB+

Digging deeper revealed this monster:

C:\ProgramData\Microsoft\Windows\CapabilityAccessManager\CapabilityAccessManager.db-wal

File size: 83 GB

Yes. A single hidden Windows WAL file had silently consumed my disk.

What Is CapabilityAccessManager.db-wal?

It’s a SQLite WAL (Write-Ahead Logging) file used by Windows.

Related service:

Capability Access Manager Service (camsvc)

Windows uses it for:

  • microphone access logs
  • camera permissions
  • location/app capability tracking

Normally this file should only be a few MB.

In my case it became corrupted or stuck and kept growing endlessly.

Symptoms

If this happens on your PC, you may notice:

  • rapidly decreasing free disk space
  • system becoming slow
  • applications crashing
  • Windows warnings about low storage
  • no obvious large downloads

How I Fixed It

Step 1 — Open CMD as Administrator

Run:

net stop camsvc
Enter fullscreen mode Exit fullscreen mode

Step 2 — Delete the Huge WAL File

C:\ProgramData\Microsoft\Windows\CapabilityAccessManager\CapabilityAccessManager.db-wal
Enter fullscreen mode Exit fullscreen mode

Do NOT delete:

CapabilityAccessManager.db
Enter fullscreen mode Exit fullscreen mode

Step 3 — Start Service Again

net start camsvc
Enter fullscreen mode Exit fullscreen mode

Important Notes

This file is:

temporary log data
automatically recreated by Windows if needed

Deleting the .db-wal file does NOT damage Windows.

But avoid deleting the main .db file unless rebuilding the database intentionally.

Final Thoughts

This was one of the strangest Windows storage bugs I’ve encountered.

The scary part is:

  • Windows hides the folder
  • normal cleanup tools don’t show the issue
  • the file can silently grow to tens of GB

So if your disk space suddenly disappears for “no reason”, check for hidden WAL files before reinstalling Windows.

Top comments (0)