how to delete every thing in a folder in node js using fs module code example
Example: how to delete a folder using node js
fs.unlink('./node/myText.txt',function(){
fs.rmdir('node');
});
fs.unlink('./node/myText.txt',function(){
fs.rmdir('node');
});