Home » Questions » Computers [ Ask a new question ]

Empty recycling bin from command line

Empty recycling bin from command line

How to empty recycling bin from command line in Windows XP?

Asked by: Guest | Views: 26
Total answers/comments: 1
Guest [Entry]

"while

rd /s /q %systemdrive%\$RECYCLE.BIN

will delete the $RECYCLE.BIN folder from the system drive, which is usually c:,
one should consider deleting it from any other available partitions since there's an hidden $RECYCLE.BIN folder in any partition in local and external drives (but not in removable drives, like USB flash drive, which don't have a $RECYCLE.BIN folder).
For example, I installed a program in d:, in order to delete the files it moved to the Recycle Bin I should run:

rd /s /q d:\$RECYCLE.BIN

More information available at Stack Overflow at how to empty recyclebin through command prompt?"