If we want to delete, for example, only *.js files in the given directory and subdirectories:
find . -name "*.js" -print0 | xargs -0 rm -rf
If we want to delete, for example, only *.js files in the given directory and subdirectories:
find . -name "*.js" -print0 | xargs -0 rm -rf