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
Article Rating:
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...