Remove unassigned materials from an object… how do I do this?

Sorry for my mistake with the solution. I have been trying to recreate it and havent been able to install and make it work in 2.8

BUT

If you download the latest nightly of 2.8 Amaranth toolset is there again.