How to find all the log files under the root directory -- Need Info

Hi

I need to find all the log files under the root directory and delete them if necessary, if any one has a sample script who can share with me.

Thanks

This should do:
find $DIR -name "*.log" -exec rm -rf {} \;

I have an extension for that.. i need to remove only if needed.. actually i am planning to write a script where that would ask a user to remove yes/no..