So you used one of the previous tips to remove the Recycle Bin from your desktop, but now you want to empty it. Can’t simply right-click on it to do that now. What to do? Here’s how to do it from the command line.
You’ll need some help, there isn’t a built in command line to do this. There are a few options, you could create your own script to do it, but there is a freeware utility called RecycleNOW that handles it quite nicely. Opening the utility, either by double-clicking it, or calling it from the command line, instantly empties the Recycle Bin without asking to confirm or showing any other pop-up items.
To make this work cleanly, there are a few steps we need to take. First of course is downloading the RecycleNOW program. It’s a zip file, so you’ll need to unzip it, for now unzipping it to your desktop works well. Inside the RecycleNOW folder you extracted is another RecycleNOW folder, and inside it is the RecycleNOW application.

I’d like to be able to type in a command, and have it just work, without having to first go look for my program. One way of doing this is to add the RecycleNOW application to your Windows directory. Vista will search that directory when you type in command lines, making this seem like a built in command. Before we do this though, my last tip pointed out a problem we’ll encounter if UAC is enabled. If we just copy the application to our Windows folder right now, it will prompt us every time we try to open it to see if we trust the publisher. To avoid this, we need to first unblock the application while it’s in a location that Vista will allow us to do so. Right-click on the RecycleNOW application, and choose Properties. Click on the Unblock button on the bottom of the window and click OK.

Now that the program will start up without complaint, you need to decide what you want to call the command that empties your Recycle Bin. I’m going to stick with RecycleNOW (it’s not cap sensitive), but you can call it anything you like, simply by renaming the RecycleNOW application file. To rename the file, right-click the RecycleNOW application file and choose Rename from the menu. Type in the desired name, and hit Enter on your keyboard.

With the file named, all we need to do now is move/copy it to the Windows directory. There are many ways to do this, I’ll use the Copy & Paste method. Right-click the RecycleNOW application file (or whatever you renamed it to) and choose Copy.

Then, navigate to your System folder (generally C:\Windows which is in Computer).

You can now paste the application in the Windows directory by right-clicking in a blank part of the Windows window, and choosing Paste from the menu. If you have UAC enabled, you’ll need to approve the elevated privileges required to copy the program to that location.

Now, any time you want to empty the Recycle Bin, just click on the Start menu, and type recyclenow (or whatever you named your application), and press the Enter key. Trash gone!

ITsVISTA
ITsVISTA Tip 23: Empty Vista’s Recycle Bin from the Command Line

Start
About
FAQ
Blogroll
Shop
Tips and Tricks
Windows Updates
Hotfixes
Fix It
Keyboard Shortcuts
Vista's Services
Vista's Commands
Product Reviews
Glossary
Videos
Web Links

Comments
Stuart
Apr 12, 2007 at 3:26 pm
Very handy. Do you know how to stop Vista creating the extra Recycle Bin with a $ sign in front of it on both internal and external HDs. Everytime I remove it from my external drive next time I plug it in it recreates it. Surely one bin on a drive is enough
Joe
Apr 12, 2007 at 5:38 pm
I hadn’t noticed that hidden folder before. I can’t figure out how to search the exact phrase “$recycle.bin” so I’ll have to take a guess that this folder is created when you share the disk, and it is where files are sent when they are deleted over the network. It’s a hidden folder, so the easiest way to ‘get rid of it’ would be setting your hidden and system files to stay hidden. Short of that, I don’t know. Anyone else have better info?
Roelof
Apr 26, 2007 at 9:23 am
Gladly i find someone with the right question Google doesn’t accept the $. I put all things to hidden but it stays there. Even in my favoritesfolder which is on a share (i use a Thecus Sambaserver for mijn documents and favorites.
Another problem vista creates is de 1327 error invalid drive, just like TweakUi generated in XP when installing / deinstalling programs such as PowerDVD, Acrobatreader
I would much appriciate other solutions, i tried to use a hide program but that locks acces to the file.
Roelof
Roelof
May 3, 2007 at 5:32 am
If found te solutio to the 1327 error.
Some programs look for de Vista “My Documentfolder” before willing to install.
If you have this folder on a harddisk on the system there is no problem.
But if you relocate by example your Document folder to a share which is previously mapped as networkdrive is fails
The solution is to relocate the Documentfolder directly to the share \\server\Documents
and not x:\Documents (when you made a networkmapping in explorer earlier)
Miff
Sep 3, 2008 at 7:22 am
This is a great tip. As a note, you can add a shortcut to the StartUp menu in order to empty the recycle bin every time the computer starts.
Leave a Comment