Delete a very, very deep tree of subdirectories on windows?

Install Git Bash or some other form of linux shell emulator. Works perfectly without any hassle.

rm -rf /c/offending/dir


Are you just trying to delete the directory and all subdirectories? RMDIR /S /Q [dirname] from a command prompt should do the trick.

Update Try this as a workaround:

  1. At the top level of the problem directory, create another directory called 'dummy_dir'

  2. Run robocopy dummy_dir problem_dir /purge


Thanks to Meghraj Choudhary for the script to delete the files on windows. https://github.com/dev-mraj/fdel

He claims it shortens the path and thus help to delete them Helpful for node developers

npm install fdel -g
fdel ./node_modules