deleteing file and foolder in m=nodejs code example Example: delete dir nodejs fs.rmdirSync(dir, { recursive: true });