Rendering
Merge Identical
Merge Identical
The RenderMergeIdenticalMaterials command finds materials with the same settings in the model, keeps one of them, and deletes the rest. Material assignments will update accordingly.

Command-line options
-SameNameOnly (Yes/No): Set yes to only merge identical materials with the same name.
For more information, please refer to the Rhino documentation.