How to get the last parent of a tool and destroy it

So how would I get the last parent of a tool (the tools parent changes so I want the old parent to destroy) and destroy it. Because when a tool goes to a players backpack I want to destroy the old parent of the tool.

local toolParent = script.Parent
toolParent:Destroy()

save the parent before you change it to the players backpack