file folder name too long to delete nodejs

Ever faced the problem of deleting files/folders on windows when working with nodejs modules.

Nodejs has a plugin that can with that pesky windows file name too long error, its called rimraf and can be downloaded from npm :

npm install -g rimraf

And then simply run the plugin from command line as we usually do with nodejs modules

C:>rimraf <dir>

That’s all!