Find all files with the extension .txt, of type file, and execute the command sed to delete any lines containing the pattern 'pattern' in each file.
find . -name '*.txt' -type f -exec sed -i '/pattern/d' {} +