How would I delete a specific line of text from a file using Nodejs

  fs, javascript, node.js

I am sorta confused, I thought about reading the file and looping through it to delete the certain phrase and then writing to a new file but that would be inefficient. I couldn’t find the method so if you can help I’d appreciate it :).

Source: Ask Javascript Questions