Is there anything in the ContentSoftLinksRepository to find all media assets which are NOT being used -- so which have no soft links inbound to them? Or do I need to iterate them all and check each one?
If you find a solution please share it because I also wan't to do this.I do it right now by getting all content by type and then getting all from softlinks and compare with LINQ expression. Not the best solution, but it works.
I have it working by simple brute force, much like you probably did. It works, but I imagine it won't scale.
I have it ina gadget, which is pulled async, so you get the little "Working..." graphic while it puls. Takes about a second in the default Alloy site.