Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 down vote accepted

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.

share|improve this answer

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

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

share|improve this answer

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .