Sure there is. And it's been around for ages but it's not built-in.

Basically you need a script file that scans the "recents" folder and deletes links to "bad" folders. Stick that to task...