you can replace your target directory instead “.” (dot) after “find” on the line , otherwise its use current directory to find and delete
find . -type f -name "*.log" -exec rm -f {} \;
you can replace your target directory instead “.” (dot) after “find” on the line , otherwise its use current directory to find and delete
find . -type f -name "*.log" -exec rm -f {} \;