Friday, January 22, 2016

"The file name you specified is not valid or too long. "

You've probably seen that message when trying to delete a deeply-nested folder on your Windows machine at some time.

I've seen various solutions around, but using node.js and a npm package called 'rimraf' was new to me.

So provided you've got node.js and npm installed, just follow these steps and bid that folder farewell:
  1. Install the 'rimraf' npm package:
    npm -install -g rimraf
  2. Run the command:
    rimraf EvilFolderThatWillNotDie

 Barabapaaraaa - I'm loving it!

No comments:

Post a Comment