Add below code in package.json script
{
"scripts": {
"rmdir": "node -e \"var fs = require('fs'); process.argv.slice(1).map((fpath) => fs.rmdirSync(fpath, { recursive: true })); process.exit(0);\"",
}
}
Then execute as below in command window
npm run rmdir -- folder1 folder2
To delete one specific folder
{
"scripts": {
"clean": "node -e \"require('fs').rmdirSync('css/', { recursive: true }); process.exit(0);\"",
}
}