Windows: Delete to Recycle Bin from the command line

Update: Check out the new tool cmd-​recycle which is a lot more robust, writ­ten much more cleanly and just more cool!

I wrote this simple utiltiy some while ago, thought I might as well pub­lish it here.

Just copy recycle.exe to WINDOWS\system32 and you can start using

recycle recycle ... recycle * recycle ...

Full source code included (using C#). Enjoy!

Down­load

2 Responses to “Windows: Delete to Recycle Bin from the command line”


  • get a nice error when i try to use this on win­dows server 2008 R2.

    recycle.exe -.NET Frame­work Ini­tial­iza­tion Error Unable to find a ver­sion of the run­time to this application.

    Any chance of point­ing me in the right direc­tion to get this to work?

  • @Greg

    I wrote a new ver­sion: cmd-​recycle. See if it works for you?

Leave a Reply