Build-in clean up unused resourec

Possibly related:

and

In short, it should be built-in — how long orphaned resources are kept is based on the "keep note history for" setting.