It is guaranteed that all contents in the Recycle Bin are deleted for the selected drive, leaving the folder intact:
C:\$Recycle Bin\>rd . /q /s
- Switch to the desired drive
- Go to the
$Recycle Bin folder - Run the
rd . /q /s command rd . /q /s rd . /q /s [remove-dir (currentdir) / quiet / subdir]
A message appears stating that the current directory is still in use (since this is your current location) and cannot be deleted. This is the expected behavior, because I want the $Recycle Bin folder to remain.
source share