Find all files with the extension .txt in the current working directory and its subdirectories up to a maximum depth of 3 and delete them.
find $(pwd) -type f -maxdepth 3 -name '*.txt' -exec rm '{}' \;