node package manager

rm-rf

rm-rf

Rimraf with glob, all in one

Install

$ npm install rm-rf

Usage

var rmrf = require('rm-rf');
 
rmrf('**/*.txt', function(error) {
  if(error) {
    console.log(error);
  } else {
    console.log('Files deleted');
  }
});