First, check the files by the following command to confirm your searched files:
find FOLDER/PATH -name '*.log'
Now run the following command to delete:
find FOLDER/PATH -name '*.log' -delete
This command will delete the file containing “.log” extension.