scripts!

Good scripts only.

Recursively delete all files with particular extension.

find . -name "*.js" -type f -delete

You can run without the -delete flag to check what files you've found before deletion.