When you want to completely delete a directory and it has files with long names in it you can use
ROBOCOPY

Let’s assume you want to delete a folder under the name `dir_to_delete` from a command line you can do the following:

mkdir empty_dir
robocopy empty_dir dir_to_delete /s /mir
rmdir empty_dir
rmdir dir_to_delete

This can happen when developing with NodeJS and node_modules folder contains a very deep file structure.

Categorized in: