Javascript delete file after download
To delete a file in Node.js, Node FS unlink(path, callback) can be used for asynchronous file operation and unlinkSync(path) can be used for synchronous file 28 Aug 2019 then in your node.js app, get reference to the function like that: the return value result is a json object with successfully deleted files. if you output result to the console, you will get something like this: Weekly Downloads.