You can remove materials that have been applied onto objects.
Result: The material is no longer applied to the object and its node is removed from the tree.