Derp, forgot to un-comment a section I was testing.
Ingot piles now disappear when emptied.