Mark Mark - 4 months ago 18
Node.js Question

node.js remove file

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?

Answer

I think you want to use fs.unlink.

More info on fs can be found here.