You can easily remove the whole row or line within a txt file that contains a repetitive string or text. In order to do this you will need an advanced editor like notepad++, a free open source application.
You click on search and replace then use the regular expression search, not normal search, and use this query:
This will select the whole line that contains that string. If you wish to erase this line, you simply replace it with nothing. You can replace multiple lines of the same value with a single click.
If you want to delete that empty line now you simply go to TextFX -> TextFX Edit -> Delete Blank Lines.