Skip to content
Windows 🟡 Intermediate

How to Clear the Recycle Bin Automatically in Windows 11 Storage Settings

Richard
Written by
Richard
Updated 8 min read
emptying recycle bin in windows
emptying recycle bin in windows
Before you start
  • 27 steps
  • Needs administrator rights
  • Includes a restart or sign-out

Storage Sense is a built-in Windows 11 tool that cleans up junk files automatically. It can delete files from the Recycle Bin on a schedule you set. Left alone, deleted items stay in the bin and keep using disk space until someone empties it by hand.

In the Settings app you can have Windows empty items older than 1, 14, 30, or 60 days. This guide also covers emptying the bin manually, forcing it empty from Command Prompt or PowerShell, and what to try when the bin misbehaves.

⚡ Quick Answer

To empty the Recycle Bin in Windows 11, right-click the Recycle Bin icon on your desktop and select Empty Recycle Bin, then click Yes to confirm. This is permanent, with no second copy kept. To empty it automatically, open Settings, select System, then Storage, click Storage Sense, and set Delete files in my recycle bin if they have been there for over to 30 days.

Advertisement

How to Empty the Recycle Bin Manually

Emptying the Recycle Bin by hand is the fastest way to get disk space back, because there is no schedule to wait for. You can do it from the desktop icon or from inside the Recycle Bin window.

Be aware that emptying the bin is permanent. Windows does not keep a second copy. If you are not sure what is in there, open the bin and look through it first.

Advertisement
  1. Find the Recycle Bin icon on your desktop. If it is missing, open Settings Personalization Themes Desktop icon settings, tick the Recycle Bin checkbox, and click OK. The icon then appears on the desktop.
  2. Right-click the icon. A context menu opens. In recent Windows 11 builds, Empty Recycle Bin appears directly on this new menu. On older builds, select Show more options first (or press Shift+F10) to reach the classic menu.
  3. Select Empty Recycle Bin.
  4. Click Yes on the confirmation prompt. The icon changes from a full bin to an empty one, which tells you the files are gone.

Alternatively, double-click the icon to open the Recycle Bin, click Empty Recycle Bin on the command bar at the top of the window, and confirm the deletion. This route lets you look through the files before you delete them. If the button is greyed out, the bin is already empty.

Automate Cleanup Using Storage Sense

Storage Sense can empty your Recycle Bin on a schedule so you never have to think about it. Turn it on in the Settings app, then tell Windows how long a file may sit in the bin before it is deleted. The options are Never, 1 day, 14 days, 30 days, and 60 days.

This works the same on Windows 11 Home and Pro. Exact label wording can differ slightly between builds, so match what you see on screen to the names below.

  1. Open Settings by pressing the Win plus I.
    Windows 11 Start menu with Settings gear icon highlighted.
    Windows 11 Start menu with Settings gear icon highlighted.
  2. Select System, then click Storage. A bar shows how much of your drive is used.
    Settings › System › Storage
    Settings › System › Storage
  3. Switch the Storage Sense toggle to On. On some builds the toggle is labelled Automatic User content cleanup inside the Storage Sense page. The Recycle Bin setting only takes effect when it is on.
  4. Click Storage Sense itself, not only the toggle, to open its configuration page.
    Settings › Storage › Storage Sense
    Settings › Storage › Storage Sense
  5. Find the section for temporary files and cleanup schedules. Depending on your build it is labelled Temporary Files or Cleanup of temporary files, with the schedule options under Configure cleanup schedules.
  6. Open the dropdown for Delete files in my recycle bin if they have been there for over and choose a period, such as 30 days. The dropdown now shows your choice.

The Run Storage Sense dropdown on the same page controls how often Storage Sense itself runs, for example every day, week, or month, or only when disk space is low. The Recycle Bin age is a separate setting.

If you do not want to wait for the next scheduled run, scroll down the same page and click the Run Storage Sense now button. Storage Sense starts straight away and applies your settings, so it removes only bin items older than the period you chose. To clear everything in the bin at once, empty it manually.

To undo this, set the Recycle Bin dropdown back to Never, or switch Storage Sense to Off. No restart is needed. Storage Sense also removes other temporary files, so check the other checkboxes on the page before you leave it running.

Advertisement

Use Command Prompt to Clear the Bin

Command Prompt lets you bypass a frozen window or menu and force Windows to delete everything in the Recycle Bin. One administrator-level command purges the hidden system folder where deleted items are stored. This can clear files that refuse to delete normally.

⚠️Warningthe command in step 3 is permanent and asks for no confirmation. It deletes the Recycle Bin contents of every user account on the C: drive, not only yours. Other drives have their own hidden $Recycle.Bin folders, which this command does not touch. Open the Recycle Bin and check what is inside before you run it.
  1. Open the Start menu and type cmd.
  2. Right-click Command Prompt and select Run as administrator. Click Yes if User Account Control asks for permission. A black window opens with a path ending in System32.
  3. Type the following command and press Enter: rd /s /q C:\$Recycle.Bin
  4. Wait for the prompt to return, which means the operation has completed, then close the Command Prompt window.

If you see an error, make sure the window was opened as administrator. Then check that the command was typed exactly as shown.

Use PowerShell to Clear the Bin

PowerShell gives you another command-line way to force the Recycle Bin empty without using the graphical interface. It helps if you prefer PowerShell, or if the Command Prompt method gives you trouble.

  1. Open the Start menu and type powershell.
  2. Right-click Windows PowerShell and select Run as administrator. Click Yes on the User Account Control prompt. A blue window opens.
  3. Type the following cmdlet and press Enter: Clear-RecycleBin -Force -ErrorAction SilentlyContinue
  4. Respond to any confirmation prompt PowerShell shows. When the prompt returns, the bin is empty. Close the PowerShell window.

This is permanent too, so look through the bin first if you are unsure what it holds.

Troubleshooting: When the Bin Gets Stuck

A stuck Recycle Bin usually means a corrupted file index or a background process is locking the folder. Typical signs are a window that freezes, error messages during cleanup, or a bin that still shows a full icon after you empty it. Administrator tools help because they skip the stuck interface and delete the files directly.

  1. Open Command Prompt or PowerShell as administrator, as described in the two previous sections.
  2. Run the cleanup command from that section and wait for it to finish.
  3. Restart your computer. The restart releases any process that was still holding the folder.
  4. Open the Recycle Bin again and check that it is empty and that the icon shows as empty.

If a single corrupted file makes the whole window hang, the command-line purge gets around the problem. It bypasses the graphical shell and deletes the underlying folder structure.

If this didn’t work

If deleted files keep coming back, or the bin refills on its own, the usual causes are third-party antivirus software or corrupted system files interfering with Windows. Check your security software for aggressive file monitoring first. Then run the system repair tools to restore normal behavior.

Advertisement
⚠️Warninga PC without active antivirus protection is exposed to malware. If you pause or turn off protection to test, do it only for a few minutes, and turn it back on as soon as the test is done. Do not browse or open downloads while it is off.
  1. Open your antivirus program and look for real-time file monitoring, quarantine, or “protect deleted files” options. Relax any that touch the Recycle Bin. To test, pause the protection briefly, then re-enable it straight afterward.
  2. Run a full scan with Windows Security (under Virus & threat protection) to rule out malware.
  3. Open Command Prompt or PowerShell as administrator, as described earlier. Both repair tools need an administrator prompt and will fail without one.
  4. Run the DISM tool first, using DISM /Online /Cleanup-Image /RestoreHealth. It repairs the Windows component store and can take several minutes. Then run sfc /scannow, which scans protected system files and replaces damaged ones. Wait for each to finish and read the result it reports.
  5. Restart the PC, then empty the Recycle Bin again using the steps earlier in this guide.

If the problem returns right after you re-enable your security software, that software is the likely cause. Check its settings or contact its vendor.

Frequently asked questions

Should you empty the Recycle Bin on your computer?

Yes. The Recycle Bin holds deleted files and takes up disk space until you empty it. Clearing it regularly frees up storage. You can do this manually whenever you want, or use Storage Sense to empty it automatically, deleting items that have been in the bin for 1, 14, 30, or 60 days.

Why can't I empty my Recycle Bin on 🪟 Windows 11?

Files in the Recycle Bin may be locked by open programs, or you may not have permission to delete them. Close any open files and programs first. If a file belongs to another user account, switch to that account to delete it. Restart your computer if the problem persists.

Why can't I empty the Recycle Bin?

A file might be in use by Windows or a running program. Close all open applications and try again. If it's a system file you don't recognize, leave it alone. You can also restart your computer to clear any locks on files, then empty the Recycle Bin.

Why can't I delete files from my Recycle Bin?

Files stay locked if programs are still using them. Close all applications and windows, then try again. Right-click the Recycle Bin and select Empty Recycle Bin. If one file blocks the whole bin, restart Windows and try again. Some system files can't be deleted intentionally.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *