There is an Item-Destroying Furnace in the Game allready. To only destroy overproduced materials, you can use an overflowgate, this block pushes items to the right and left side if there are to many. Hope i could Help :-)
Add a Dieter top destroy only one Type of meterial