Exclua Dir Nodejs
fs.rmdirSync(dir, { recursive: true });
Bloody Boar
fs.rmdirSync(dir, { recursive: true });
var rimraf = require("rimraf");
rimraf("/some/directory", function () { console.log("done"); });
rimraf.sync("/some/directory");