The following command delete all lines starting with WORD_TO_DELETE and overwrite the original file.
sed -i -e '/WORD_TO_DELETE/d' FILE_NAME
The following command delete all lines starting with WORD_TO_DELETE and overwrite the original file.
sed -i -e '/WORD_TO_DELETE/d' FILE_NAME