REMOVE Q DIR FROM TRASH CAN WINDOWS
This command will scan Windows system files, which can take several minutes.Sadly, you can’t use the -i hack when you’re deleting folders, so be extra careful Another thing to keep in mind is that rmdir only deletes the directory, but can’t delete any files or folders located within that directory. This time, enter the following command: sfc /scannow Navigate to the appropriate directory using Terminal. If you still get the error message about a corrupted recycle bin, open the command-line tool with administrator privileges again.If the desktop icon goes missing, restore it as described above. Only the Recycle Bin data on this drive will be deleted. Replace the “X” with the letter of the drive containing the corrupted Recycle Bin. Enter the following command in the command line: rd /s /q X:\$Recycle.bin.Depending on your Windows settings, you will be prompted by User Account Control to confirm. To delete an empty directory, use the -d (-dir) option and to delete a non-empty directory, and all of its contents use the -r (-recursive or -R) option.Right-click the Windows logo in the taskbar to open the command-line tool as an administrator: click PowerShell (Admin).That way you don’t need to empty the trash for all drives. If the file does not exist, do not display a diagnostic message or modify the exit status to reflect an error. If you get the message “Recycle bin on (drive) is corrupted” when you attempt to restore a file from the Recycle Bin, it’s best to just delete the affected folder. For completeness sake the options here from the rm man page: -f Attempt to remove the files without prompting for confirmation, regardless of the file's permissions. The deleted files are temporarily stored in these folders until the Recycle Bin is emptied. To the user, the Recycle Bin icon looks like a single recycle bin, but Windows actually uses a separate hidden folder on each drive.