How to delete material slots from static mesh?

thanks, it worked for me too!