Deleting Folders or Files That Have Long Paths
1 min readJan 29, 2017
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 Prompt (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 or directory)
- And done!
I hope this works for you as it did for me. I found out about this here.
Note: Please only use this if you are confident with your ability to use the Command Prompt