In the hypershade I believe there is an option (maybe edit >) delete unused nodes. That should get rid of materials that aren't needed. EDIT: I too often find it very difficult to search the maya help files and get a useful answer.