Ever wanted to delete a folder or a file only for Windows to complain that the path is too long? Robocopy to the rescue! Below are the steps:
- Create an empty folder (eg. temp_empty) in a directory of your choice.
- Open the the command line (search “cmd” for Windows 10 in Start menu)
- Type robocopy C:/temp_empty C:/folder_with_long_path_to_delete /purge
- Do replace the “C:/” portion with the actual path
- And done!
I hope this works for you as it did for me. I found out about this here.