I don't know when this was introduced, but I found there is a new way to clear the log from memory after I upgraded Mikrotik to ROS-v7.20+
Old way:
/system logging action set memory memory-lines=1
/system logging action set memory memory-lines=1000
New way:
/system/logging/action/clear action=memory
Cheers