How to delete recors in log using one click?

Can you tell me how to delete all records in log? Using one click. Or some script?