If file-path is c:/book/test.docx
. So code for removing that file is -
var fs = require('fs'); var filePath = 'c:/book/test
.docx'; fs.unlinkSync(filePath);
If file-path is c:/book/test.docx
. So code for removing that file is -
var fs = require('fs'); var filePath = 'c:/book/test
.docx'; fs.unlinkSync(filePath);