open_in_new
content_copy
find /path/to/directory -type f -name "*.txt" -exec rm {} \;