It would be great if we could use conditional delete (as described here) to clean up linked resources.