Solution:
Root Cause: Truncated or Zero-Byte $I Index Header Files in NTFS Whenever a file is moved to the Recycle Bin, Windows creates two paired files inside
C:\$Recycle.Bin\<SID>\: the data payload (
$R<6-char-hash>.<ext>) and a binary metadata header (
$I<6-char-hash>.<ext>). In Windows 10 and Windows 11 (version 2 format), the
$I header stores an 8-byte header signature (
0x0200000000000000), original file size, deletion timestamp (
FILETIME), path length, and UTF-16LE original file path. If an abrupt power loss, BSOD, or storage controller timeout interrupts a file deletion, a zero-byte or truncated
$I file is written. On every boot,
shell32.dll reads this malformed binary structure, fails validation, and triggers an endless loop of 'The Recycle Bin on C:\ is corrupted. Do you want to empty the Recycle Bin for this drive?' dialogs.
Diagnostic Verification: List all $I metadata files inside your SID folder and check for 0-byte or abnormally small (< 28 bytes) records: Copy
powershell
Get-ChildItem -Path "C:\`$Recycle.Bin" -Recurse -Force -Filter "`$I*" | Select-Object FullName, Length
Any $I file with Length equal to 0 (or orphaned $R files without a matching $I counterpart) confirms index header corruption. Step-by-Step Fix: 1 Open Command Prompt (Admin) and inspect whether any critical files need recovery before purging:
If you need to rescue deleted data, copy $R* files out to a temporary folder (mkdir C:\RecoveredBin && xcopy C:\$Recycle.Bin\*\$R* C:\RecoveredBin\ /h /y). 2 Terminate explorer.exe temporarily so no shell thread holds an open file handle on the malformed $I header:
Run: Copy
cmd
taskkill /f /im explorer.exe
3 Purge the $Recycle.Bin directory completely from the command line:
Run: Copy
cmd
rd /s /q C:\$Recycle.Bin
4 Restart explorer.exe and verify the Recycle Bin icon switches from full to empty:
Run: Copy
cmd
start explorer.exe
Prevention & Long-Term Monitoring: Enable write-caching buffer flushing protection on internal NVMe/SATA drives via Device Manager > Disk drives > Properties > Policies to minimize half-written $I headers during unexpected power loss. Use a UPS (Uninterruptible Power Supply) on desktop workstations to prevent dirty NTFS unmounts.