var rimraf = require("rimraf"); rimraf("/some/directory", function () { console.log("done"); });
rimraf.sync("/some/directory");