sed - delete the line containing the string
sed '/string/d' file.txt