Storage · Windows 11
Fix a drive that keeps reporting a corrupted Recycle Bin
A corrupted Recycle Bin warning that names one drive almost always means that drive's hidden $Recycle.Bin folder is damaged, not that your files are. Empty what you still need from the bin first, delete that one folder so Windows rebuilds it clean, and check the drive only if the warning comes back.
What you need
- The drive letter from the warning. The message names the drive whose bin is damaged — the fix applies to that drive only, not to every drive on the PC.
- A quick look inside the bin first. Anything still in that drive's Recycle Bin that you might want back must be restored before you start, because the repair deletes the bin's contents.
- An administrator account. The repair step runs from an elevated prompt.
Read the problem before you touch it
- Know what is actually damaged. Every drive keeps its own hidden folder named $Recycle.Bin, and deleted files sit there until you empty the bin. The warning means that folder's bookkeeping is damaged. Your live files elsewhere on the drive are not part of the bin and are not touched by rebuilding it.
- Note whether the warning names the same drive every time. One drive named again and again points to that drive's bin folder. Warnings that rotate between drives, or arrive alongside other errors, point lower — at the drive itself — and belong in the advanced steps.
- Try emptying the bin the normal way once. Right-click the Recycle Bin on the desktop and choose Empty Recycle Bin. If it empties without the warning and the warning stays away for a day, the damage was minor and you are done.
The simple fixes, in order
- Restore anything you still need, then empty the bin. Open the Recycle Bin, restore any file you are not sure about, then empty it fully. The repair in the advanced route permanently removes whatever is left inside that drive's bin.
- Restart the PC and watch for the warning. A restart closes every handle on the bin folder. If the warning does not return after the restart and a test delete, stop here.
- Delete a test file on the named drive. Create a plain text file on the drive named in the warning, delete it, then empty the bin. A clean delete-and-empty cycle with no warning is the sign the bin is working again.
The advanced route
- Delete the damaged bin folder from an admin prompt. Open Windows Terminal as administrator and run
rd /s X:\$Recycle.Bin, replacing X with the letter of the drive named in the warning, then confirm the prompt. Microsoft documents the switches for this command in rd. Windows recreates a clean $Recycle.Bin folder on that drive automatically the next time you delete a file. - Repeat only for drives that are actually named. If a second drive later shows its own warning, run the same command with that drive's letter. Do not run it on drives that have never been named — there is nothing to gain.
- Check the drive if the warning returns. A bin that corrupts again after a clean rebuild suggests file system damage underneath it. Run a read-only check first with
chkdsk X:from the admin prompt — with no fix switches it reports without changing anything. Microsoft covers the options in chkdsk. If it reports errors, run the repair it suggests; on the system drive that repair is scheduled for the next restart, so save your work first. - Repair system files if several drives are affected. When bins corrupt on more than one drive, open Windows Terminal as administrator, run
DISM /Online /Cleanup-Image /RestoreHealth, then runsfc /scannow. Microsoft documents both tools in Using System File Checker in Windows.
End state
- Deleting a test file on the previously named drive and emptying the bin produces no warning.
- The corrupted Recycle Bin message does not return after a restart.
- Restored files you kept are back in their original folders, and the bin shows empty.
When it goes wrong
- The rd command says access denied. The prompt is not elevated, or a file in the bin is still open. Close your apps, reopen Windows Terminal with Run as administrator, and try again.
- The warning comes back within days on the same drive. Treat that as a drive problem, not a bin problem: run the read-only chkdsk check above and back up the drive's important files before running any repair.
- The named drive is an external drive that is no longer attached. Reconnect it before repairing — the command has to run against the drive whose bin is damaged, and Windows rebuilds the folder only while the drive is present.
Related fixes
-
Fix an SD card that works in a camera but shows empty in Windows
If the camera reads the card fine and Windows sees the card but shows nothing on it, the photos are almost certainly still there — Windows is looking at the wrong place, hiding the files, or struggling with the card's file system. Check the folder and drive letter first, show hidden files next, and leave any repair or format step until your photos are copied off.
-
Fix Windows Security protection that keeps turning itself off
Real-time protection that switches itself back off is rarely a setting you changed — it usually means the Microsoft Defender Antivirus service is not running, or another antivirus has taken over and then failed. Check which protection is actually in charge first, remove the conflict next, and repair the service and system files only if the toggle still will not stay on.
-
Fix a drive that disappears from File Explorer after the PC sleeps
A drive that vanishes from File Explorer after sleep, then comes back after a restart, is usually being powered down and not woken cleanly, or Windows has marked it as removed. Check Disk Management first to see whether Windows still sees the drive at all, then fix the power and hot-swap settings that let it drop.
-
Fix a drive letter that keeps changing for an external drive
Windows assigns drive letters in the order drives appear, so an external drive can be E: on Monday and F: on Tuesday, breaking every shortcut, backup job, and library that points at it. Give the drive a letter late in the alphabet in Disk Management, and Windows keeps that letter for that drive.
Sources
- Microsoft Learn, rd — the command and switches used to remove the damaged $Recycle.Bin folder.
- Microsoft Learn, chkdsk — read-only checks and repair options when the warning keeps returning.
- Microsoft Support, Using System File Checker in Windows — running DISM and SFC to repair missing or corrupted system files.