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