delete files recursively that ends with substring

PHOTO EMBED

Fri Jun 30 2023 13:34:09 GMT+0000 (Coordinated Universal Time)

Saved by @vs #bash

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