How do I delete a file with node.js?
http://nodejs.org/api/fs.html#fs_fs_rename_oldpath_newpath_callback
I don\'t see a remove command?
fs-extra provides a remove method:
fs-extra
const fs = require('fs-extra') fs.remove('/tmp/myfile') .then(() => { console.log('success!') }) .catch(err => { console.error(err) })
https://github.com/jprichardson/node-fs-extra/blob/master/docs/remove.md