How to delete folders recurisvely with long names

Do you have an issue where there are hundred/thousands of folders inside more folders which you are unable to delete due to the filenames being too long.

Solution:

robocopy c:\purge d:\deleteme /purge

Where “d:\deleteme” is the infinite loop path you wish to delete
Make sure to create a blank folder named “purge” in c:\ as mentioned above.