delete dir nodejs
snippet in javascript

delete dir nodejs

user3976

fs.rmdirSync(dir, { recursive: true });