Nov 10, 2018

How to delete a file/directory in Windows with path too long problem

If you try to delete a file or directory but is told "Path too long". You can use robocopy to work around it.

mkdir tmp
robocopy tmp the_dir_to_delete /s /mir
rmdir tmp

rmdir the_dir_to_delete