Q. Which method deletes a file?

A
fs.delete()
B
fs.unlink()
C
fs.remove()
D
fs.erase()
Solution:

fs.unlink() deletes a file in Node.js.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!