How do you remove materials in blender?

What I mean exactly is from the icon area (where the material library is) and in the UV Mapping place.,

Select the Material, Shift-click on the x, save and re-open your file.