Made a little quality of life add-on to fix one of the most annoying things for me in Blender. Removing userless data (images, material, etc. with 0 next to the name) is a pain. You either have to restart .blend file to get rid of them or use blenders default Purge/Clean Up button that deletes absolutely every unused data.
The first method is painstaking, second is extremely risky because if you just want to get rid of unused materials that are cluttering your lists, you might accidentally delete actions, mesh data, or images you need but didnāt know were userless, or without fake user.
So to save my time and sanity I wrote this simple code. It adds a button in the Outliner header, which lets you select which data type you want to purge. Simple as. Similar add-on maybe already done, but I couldnāt find it, and if you need it (you do), Iām sharing this for free on Gumroad
Buttons are inactive (greyed out) if there is no orphan data for that data type
After the operation text is printed in the info displaying a number of orphans purged
Viewer Node, which is considered orphaned image in Blender wonāt be purged or counted by the add-on. (Deleting Viewer Node doesnāt harm anything, itās just annoying)
Included bug tracker link that redirects to this page
I took @xan2622ās suggestion and updated the addon to 1.1
Buttons are inactive (greyed out) if there is no orphan data for that data type
After the operation text is printed in the info displaying a number of orphans purged
Viewer Node, which is considered orphaned image in Blender wonāt be purged or counted by the add-on. (Deleting Viewer Node doesnāt harm anything, itās just annoying)
Included bug tracker link that redirects to this page
Forgot to post it here, Iāve updated this add-on quite a lot and uploaded it on BlenderMarket, I call it Deep Clean because it incorporates other features besides data type purging, better UI also. I plan on updating this to add third batch of features and Iāll make separate post for it then.
Itās been selling well considering everything and Iām glad people find this feature useful, I use this on hourly basis almost