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