Delete logs at appropriate times.