You could do this in a one-liner:
```sh
find . \( -name "*.binary" -o -name "*.h5" \) -exec rm -f {} \;
```