TechBuzzPro

Fix Corrupted Recycle Bin in Windows 7: Step-by-Step

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

A corrupted Recycle Bin in Windows 7 usually shows up as an icon that will not refresh, files that will not delete, or an error when you open it. The fix is to reset the bin's hidden system folders and registry entries so Windows rebuilds them. You do not need third-party tools; everything can be done with built-in Windows utilities. Before you start, close any open File Explorer windows and make sure you are signed in as an administrator. The steps below assume Windows 7 with the default Aero or Classic theme; menu labels can differ slightly by edition or language.

What You'll Need

  • Administrator rights on the Windows 7 PC.
  • Command Prompt (available from the Start menu).
  • Registry Editor (Regedit).
  • A recent backup or restore point, in case you need to undo registry changes.

Step-by-Step

  1. Close all File Explorer windows. A corrupted bin often locks files while Explorer is open. Close every folder window and any program that might be using the Recycle Bin.
  2. Open Command Prompt as administrator. Click Start, type cmd in the search box, right-click Command Prompt, and choose Run as administrator. If User Account Control asks for permission, click Yes.
  3. Stop Windows Explorer. In the Command Prompt window, type taskkill /f /im explorer.exe and press Enter. The desktop and taskbar will disappear; this is normal. Leave the Command Prompt window open.
  4. Reset the Recycle Bin folders. In the same Command Prompt window, type the following commands one at a time, pressing Enter after each:
    rd /s /q C:\$Recycle.Bin
    rd /s /q D:\$Recycle.Bin
    Replace D: with any other drive letter that has a Recycle Bin. If a drive does not have the folder, the command will report that it cannot find the path; that is fine. These commands permanently delete everything currently in the Recycle Bin, so make sure you do not need those files.
  5. Restart Windows Explorer. In the same Command Prompt window, type explorer.exe and press Enter. The desktop and taskbar should return. Windows will recreate the $Recycle.Bin folder automatically when needed.
  6. Check the Recycle Bin. Right-click the Recycle Bin icon on the desktop and choose Empty Recycle Bin (it may already be empty). Then delete a test file and confirm it appears in the bin. If the icon still looks wrong, continue to the registry step.
  7. Open Registry Editor. Click Start, type regedit in the search box, and press Enter. Click Yes if User Account Control asks for permission.
  8. Navigate to the Recycle Bin registry key. In Registry Editor, expand the folders in the left pane to reach:
    HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}
    This is the standard CLSID for the Recycle Bin. If you are not comfortable editing the registry, skip to step 10.
  9. Reset the icon and name values. With that key selected, look in the right pane for values named DefaultIcon and LocalizedString. If they are missing or corrupted, right-click the key, choose Delete, and confirm. Do not delete the entire CLSID folder, only the Recycle Bin subkey. Close Registry Editor and restart the computer. Windows will rebuild the key with default values.
  10. Rebuild the icon cache (if the icon is still wrong). Open Command Prompt as administrator again and run ie4uinit.exe -ClearIconCache, then restart the PC. This refreshes the icon cache without deleting personal files.
  11. Run a system file check. If the bin still misbehaves, open Command Prompt as administrator and run sfc /scannow. This scans Windows system files and repairs corrupted ones. It can take several minutes; let it finish and restart when prompted.

Common Mistakes

  • Deleting the whole CLSID key. Only the Recycle Bin subkey should be removed. Deleting the parent CLSID folder can break other shell items.
  • Running commands without administrator rights. The rd commands will fail with access denied if the Command Prompt is not elevated.
  • Forgetting to stop Explorer first. If Explorer is running, the $Recycle.Bin folder may be locked and the delete command will fail.
  • Assuming every drive has the folder. Removable drives and some network drives do not use $Recycle.Bin; errors for those drives are expected.
  • Skipping the backup. Registry edits are safe when done carefully, but a restore point makes recovery simple if something goes wrong.

Tips

  • Create a restore point before editing the registry: click Start, type System Restore, and follow the wizard to create one.
  • If you only need to empty the bin, right-click the Recycle Bin icon and choose Empty Recycle Bin; the full reset is for corruption, not routine cleaning.
  • Keep the Command Prompt window open until Explorer is restarted, otherwise you may lose the session.
  • After the fix, test by deleting a small file and restoring it from the bin to confirm both delete and restore work.
  • If you use a third-party theme or shell extension, disable it temporarily to see whether it is causing the corruption.

Troubleshooting

If the Recycle Bin still does not work after the steps above, work through these checks in order.

  • Access denied when deleting $Recycle.Bin: Make sure you are using an administrator Command Prompt and that Explorer is stopped. If the folder is still locked, restart the PC, then repeat steps 2 to 5 before opening any folders.
  • Recycle Bin icon missing: Right-click the desktop, choose Personalize, click Change desktop icons, and tick Recycle Bin. Click OK.
  • Files will not delete to the bin: Check that the bin is not set to Don't move files to the Recycle Bin. Right-click the Recycle Bin, choose Properties, and confirm the custom size is not set to 0 MB for that drive.
  • Registry key will not delete: Close Registry Editor, restart the PC, and try again. If it still refuses, take ownership of the key (advanced) or restore the registry from a backup.
  • Error persists after sfc /scannow: Run chkdsk C: /f from an administrator Command Prompt and restart when asked. This checks the disk for file-system errors that can corrupt system folders.

Frequently Asked Questions

Will resetting the Recycle Bin delete my files permanently?

Yes. The rd /s /q commands remove the bin's storage folders, so anything currently in the Recycle Bin is permanently deleted. Back up or restore important files before you start.

Do I need to edit the registry?

Not always. Many corrupted bins are fixed by stopping Explorer, deleting the $Recycle.Bin folders, and restarting Explorer. The registry step is only for icon or name corruption that survives the folder reset.

Can I fix this without Command Prompt?

You can empty the bin and change its size through the Recycle Bin's Properties dialog, but a full reset of corrupted system folders requires Command Prompt or Registry Editor. There is no built-in graphical reset button for the bin.

Why does the Recycle Bin show files from another drive?

Each drive has its own $Recycle.Bin folder. If one drive's folder is corrupted, the bin can display stale or mixed entries. Repeat the reset commands for every drive letter that appears in the bin.

Is it safe to run sfc /scannow?

Yes. System File Checker scans and repairs protected Windows system files. It does not delete personal files, though it may take several minutes and require a restart.

What if the Recycle Bin icon still looks corrupted after all steps?

Try switching to a different desktop theme, then back, and rebuild the icon cache with ie4uinit.exe -ClearIconCache. If the problem remains, create a new user account and check whether the bin works there; that tells you whether the corruption is profile-specific.