NodeJS Eliminar carpeta recursivamente
fs.rmdirSync(dir, { recursive: true });
Wide-eyed Fox
fs.rmdirSync(dir, { recursive: true });