delete a file with node.js / remove file

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);