Control Panel > Delete Unused Shaders
 
 
 

Deletes shaders that are not referenced by any objects—in other words, shaders you have not used.