05 / 16

How can you delete a file in Node.js?

You can delete a file in Node.js using the fs.unlink() method. Here's an example:

javascript