find is a console command that is available on Linux and MacOS.
Recursively finding and removing all files based on name
find . -type f -name ".DS_Store" -delete
Finding only in the current directory, or any number of directories deep
find . -maxdepth 1 -type f -name ".DS_Store"
Specifying a list of filenames
find . \( -name "*.jpg" -o -name "*.JPG" -o -name "*.jpeg" -o -name "*.JPEG" \)
Case-insensitive search
find . -iname FileName.TXT