How to delete a matrial?
You click the X in the material datablock. Then look in the datablock menu and it will have a O in front of it which means it is not linked to any object. When you save any unlinked data will be dropped. Quick save is Ctrl-S Ctrl-O.