title: Can I script an equivalent of "Delete All by Type" in Maya's Hypershade?
body: <p>Is it possible to write a script in MEL or Python that achieves the same result as selecting: Hypershade Window > Edit > Delete All by Type > Shading Group and Materials.</p>
  
  <p>I tried to solve it for a long time and I have no more ideas; maybe someone can help me?</p>