Remove recursive by extension
Remove recursive by extension
Remove files recursively by extension
find . -name "*.bak" -type f -delete
find . -name "*.bak" -type f
Also, make sure that -delete is the last argument in your command. If you put it before the -name *.bak argument, it will delete everything.