Find the most recently modified directory, then find all files ending in .txt in that directory and delete any lines containing the word "text".
find $(ls -dt */ | head -1) -name '*.txt' -exec sed -i '/text/d' '{}' \;