rimraf-glob

rm -rf with glob

rm -rf with glob

var rmrf = require('rimraf-glob')
 
rmrf('**/*.js', function (error) {
  // done 
});
$ npm install rimraf-glob