Edit file on linux using vi to find and delete lines

Thank you!

I just used sed -i '/string to be removed/d' file_name.txt

For the two lines I needed to remove. First used it at command line and then placed in a script and it worked.

Thank you!