How to recursively remove files with a specific extension in bash

1 min read

#!/bin/bash
find . -type f -name "*.[fileextension]" -exec rm {} \;