find dir -name "*.txt" | xargs rm -rf