Delete all files matching a pattern within a directory recursively

find . | grep -r -e “SomeFilePrefix.*\.php” | xargs rm

Leave a Comment