(view help text of DelTrash.cs as plain text)
DelTrash.exe, Version 1.05
Empty the Recycle Bin
Usage: DelTrash.exe [ drive: | /W ] [ /C ] [ /P ] [ /L | /Q | /V ]
Where: drive: empty recycle bin on this drive only
(default: all local harddisks)
/W empty recycle bin on Windows' drive only
(default: all local harddisks)
/C prompt for Confirmation
/L List only, do not delete
/P show Progress bar
/Q Quiet mode, no screen output
/V Verbose mode, show number of files and total size per disk drive
Notes: Switches /L and /Q and /V are mutually exclusive.
Return code is 0 if the Recycle Bin was emptied successfully, or 1
if there was nothing to delete or in case of (command line) errors.
Credits: Based on code by Vinoth Kumar
www.codeproject.com/Articles/20172/Empty-the-Recycle-Bin-using-C
Written by Rob van der Woude
https://www.robvanderwoude.com
page last uploaded: 2025-10-23; loaded in 0.0070 seconds