61 How to delete lines in all files in tree that contain some specific text?

Suppose we wanted to delete all lines that has some word, say window in them.

Do

#!/bin/bash 
 
cd $HOME/my_tree 
 
find . -name "*.txt"|while read fname; do 
  echo "processing $fname" 
  sed -i '/windows/d' $fname 
done