You could do it when opening listers (by making Opus run a command) but not when closing them.
If you don't want the recent list at all, it can be turned off.
My solution is to have a global hotkey I can press every so often to clear certain logs. (In my case they're nothing to do with Opus; it clears chat logs, but the idea is the same and the hotkey is created in Opus as it's a convenient way to do so.)