Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

4 Answers

up vote 2 down vote accepted

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

cd\recycler
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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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