Entity spawned isn't deleting after foundation/floor destroyed

I'm trying to make a plugin, however I need it when I create a prefab on a foundation, it gets deleted along with the foundation, how do I do it?
:(


"GAME: RUST"

Why won't you look onto how rust handles deployables? It's so obvious.
hm, okay, thanks for nothing!
I want to remove a recycler when the ground is destroyed :(
In response to Finn ():
hm, okay, thanks for nothing!
I want to remove a recycler when the ground is destroyed :(
Plus, you can set foundation as parent of recycler (that will also work)
In response to Orange ():
Plus, you can set foundation as parent of recycler (that will also work)
Exactly what I meant, but he isn't really interested in using his mind and a decompiler.
In response to Orange ():
https://umod.org/plugins/extended-recycler
Many thanks, I can use this to understand how things work in rust
In response to 2CHEVSKII ():
Exactly what I meant, but he isn't really interested in using his mind and a decompiler.
For you, it should be extremely easy, tinkering with rust for a long time and knowing in the palm of your hand where to find what you need
but for someone like me who has no knowledge about rust, it's like looking for a needle in the haystack
this does not mean that I will not seek or do not want to, but that I do not have enough knowledge to know where to look exactly.
In response to Finn ():
For you, it should be extremely easy, tinkering with rust for a long time and knowing in the palm of...
Well, hm. Using search on the forums would definitely lead you to some guides on how to look into game assemblies. Use some more passion and you will come to mind that a deployable item must be somehow related with Deployer class. 
My general speech is -> don't be afraid of using google and forum search.