Material list deletion

How does one delete all the materials in the list, when I delete a character pants color by been in object mode and use the minus option, the color is still in the material list.

If you save the file and then re-open it, the unused materials should disappear.