7 Program to Delete/Un-link File in NodeJS

Program:

var fs = require('fs');



fs.unlink('demo.txt',function(){

    console.log("File Deleted");

});


Output:

 Delete/Un-link File in NodeJS

Previous
Next Post »