Delete line

To delete lines in a file that match a certain pattern run

sed -i "/pattern/d" /path/to/file