Windows: The folder contains items whose name is too long for the recycle bin.


When you try to delete a folder i.e. (folder_to_delete) you get an error message: The folder contains items whose name is too long for the recycle bin.

The folder contains files that have names that are longer than windows can handle and is an issue that has existed since Microsoft introduced long file names, these files may also not have short file names (8.3)

In these cases we can use robocopy which is included in Windows to remove the offending folder and files.

mkdir mytrash
robocopy mytrash folder_to_delete /s /mir
rmdir mytrash
rmdir folder_to_delete

Related posts:

Article Rating:
0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this.
Loading...