Deleting things such as materials/vertex groups

Hello all!

I have a quick question: How do you delete materials? if you hit the X, it just deletes it off the object. This is annoying because I make all these materials, and then i want to get rid of some, but can’t. same goes for vertex groups and probably some other things that I’ve worked with.


Just import everything in your scene into another file, minus the things you don’t want.