Any way to clear the openhab.log while running?

The logback.xml that ships with openHAB already has a rolling log appender configured which rolls over the openhab.log and events.log every week, and keeps the last 30 weeks worth of logs.

See here;

https://github.com/openhab/openhab/blob/master/distribution/openhabhome/configurations/logback.xml