You get 80% of the materials used back as Novian ressources when you tear down a structure. They end up in your bank vault.
I do not know what happens to the stuff in the siloes, but I would guess...