Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How to Empty Recycle Bin for All Users on Windows

How to Empty Recycle Bin for All Users on Windows

Abhishek SilwalBy Abhishek SilwalJanuary 10, 2023
empty recycle bin for all users

Windows creates separate Recycle Bins for each of your drives or partitions with the name $RECYCLE.BIN. If you open this folder (after unhiding it), you may see more than one subfolder. 

The first folder is named just Recycle Bin contains the temporarily deleted folders for the current user account. This folder is actually linked across all drives so you will see the deleted data of all of them even though it contains the data for the current drive only.

The other folders are named as the Security Identifier (SID) number of other user accounts on your local computer (for example, S-1-5-21-...-1003 and S-1-5-21-...-1005. And as you may have guessed, they store the temporarily deleted data of their respective accounts.

If you log in to the account with the SID S-1-5-21-…-1003, you will still see their deleted data on the ‘Recycle Bin’ folder and the $RECYCLE.BIN folder contains the SID folders of other accounts excluding their own (following the example, S-1-5-21-…-1001 and S-1-5-21-…-1005).

The Recycle Bin that you normally use is the same linked folder we discussed earlier. So, if you right-click on it and select Empty Recycle Bin, it simply permanently deletes the files from the current user account, not others. The only way to clear the Recycle Bin for all users is by deleting the $RECYCLE.BIN folder altogether from your drives, which also removes the SID folders.

There are many ways to delete this folder on Windows and you can use any method according to your preference.

Table of Contents

  • Using Command Prompt
    • Create Batch Script
    • Automate Batch Script
  • Using PowerShell
  • Manually Deleting

Using Command Prompt

The easiest way to remove the Recycle bin folder is by using the rmdir or rd command on Command Prompt.

  1. Open Run by pressing Win + R.
  2. Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
  3. Enter the command rd /s <drive letter>\$Recycle.bin to empty the recycle bin for that particular drive. Then, type y and press Enter as a confirmation.
    rd-s-c-recycle-bin-y
  4. You can also use the /q flag to avoid having to confirm the command. For instance, rd /s /q C:\$Recycle.bin
    rd-s-q-c-recycle-bin

Create Batch Script

If you want to avoid having to type this command every time you want to clear Recycle bin, it’s better to create a batch script instead.

  1. Open Run.
  2. Type notepad and press Enter to open this text editor.
  3. Type the command rd /s /q <drive letter>\$Recycle.bin while replacing the drive letter as necessary. You can even put this command multiple times while including all your drive letters to empty recycle bin for all these drives.
    rd-recycle-bin-notepad
  4. Press Ctrl + Shift + S to open the ‘Save as’ window.
  5. Go to any location you want. Then set the file name with the .bat extension, for instance, EmptyRecycleBin.bat
  6. Click Save.
    empty-recycle-bin-bat-save
  7. Then, you can go to that file location and double-click on the .bat file to run the command.

Automate Batch Script

You can further automate this batch script by using the Task Scheduler. To do so,

  1. Open Run.
  2. Type taskschd.msc and press Enter to open the Task Scheduler.
  3. Right-click on Task Scheduler Library and select Create Task.
    task-scheduler-library-create-task
  4. Enter the Name and Description as you wish and configure other options inside the General tab if necessary.
  5. Go to the Triggers tab and select New.
    triggers-new
  6. Choose the type of trigger you want next to Begin the task. For instance on a specific schedule or right after logging into your account.
  7. The other options change depending on the previous choice. They are self-explanatory, so pick them accordingly.
  8. Click OK.
    trigger-OK
  9. You can add other triggers or edit previous ones by clicking on New and Edit respectively.
  10. Go to the Actions tab and click New.
  11. Set the options to the following values:
    • Action: Start a program
    • Program/script: the full path of your batch script. For instance, F:\New\EmptyRecycleBin.bat
  12. Leave the other options empty and click OK.
    new-action-programs-script-ok
  13. Go to the Conditions and the Settings tabs and set the options there if necessary.
  14. After you are done, click OK to create the task.

Using PowerShell

If you want to delete the Recycle Bin contents using PowerShell, you can use the PowerShell alternative of the CMD commands above in a similar manner.

  1. Open Run.
  2. Type powershell and press Ctrl + Shift + Enter to open the Elevated Windows PowerShell. If you use PowerShell core, use the Run command pwsh instead.
  3. Enter the command below while replacing C with the letter of the drive you need:
    Get-ChildItem “C:\`$Recycle.bin\” -Force | Remove-Item -Recurse -force
    You need to use the back quote (`) sign before the dollar ($) sign as PowerShell would treat $Recycle as a variable name otherwise.
    Get-ChildItem-C-Recycle.bin-Force-Remove-Item--Recurse--force

Manually Deleting

You can also manually delete the contents of the root Recycle Bin folder to clear its contents for all users. However, keep in mind that this method might be slower since you need to make multiple confirmations

  1. First, you need to unhide your protected files and folders.
    • Open Run.
    • Type control folders and press Enter to open File Explorer Options.
    • Go to the View tab.
    • Check Show hidden files, folders, or drives and uncheck Hide protected operating system files. 
      show-hidden-and-protected-files
    • Confirm by clicking Yes if prompted.
  2. Then, open the File Explorer (Win + E) and go inside the drive whose recycle bin you want to clear.
  3. Select $RECYCLE.BIN and press Ctrl + Shift + Del to permanently delete it.
    recycle-bin-c-drive
  4. Confirm all the following prompts.
how-to
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

how to delete win backup files

How to Delete Backup Files on Windows

January 29, 2023
how to reset password on hp laptop

How to Reset Password on HP Laptop

January 29, 2023
Reset BIOS password

4 Ways to Reset BIOS Password

January 28, 2023
how to make windows 11 look like windows 10

How to Make Windows 11 Look Like Windows 10

January 25, 2023
how to find hidden folder in laptop

How to Find Hidden Folder in Laptop

January 24, 2023
mouse not showing in chrome

Mouse Not Showing in Chrome? Here’s How to Fix It

January 25, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
how long does a cmos battery last

How Long Does a CMOS Battery Last

January 25, 2023
thunderbolt vs usb c

Thunderbolt Vs USB C: What’s the Difference

January 25, 2023
how to find hidden folder in laptop

How to Find Hidden Folder in Laptop

January 24, 2023
You may also like
how-to-connect-headphones-to-tv

5 Ways to Connect Headphones to TV

January 29, 2023
connect-airpods-to-samsung-tv

How to Connect AirPods to Samsung TV? (Step-by-Step Guide)

January 29, 2023
AIO Pump Not Working

AIO Pump Not Working? Here’s How to Fix It

January 29, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.