When I try to empty my Recycle Bin, I get the following error:

Cannot remove folder [folderName]. The directory is not empty.

Any idea what's going on here?


You could fix it by running Command Prompt and entering these commands:

attrib -r -s -h * /s /d
del * /f /s /q
rd /s /q .

The last line will cause the error "The process cannot access the file because it is being used by another process." That's just because you are currently in the directory for the recycle bin and is actually for your protection. It can be ignored.


I get this quite often when I have an application looking at that folder. Command Line is quite an offender. Explorer Windows can do this too. Visual Studio did it as well, even after it was closed. Had to open a different solution.

Otherwise, it might be hidden or system files.


I've had this problem before, this was easily solved by running CHKDSK


Try restoring the files, then force delete them from the command line instead of sending them to the recycle bin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.