How to tell when object has been destroyed with scripting

So I have an object that appears to be held up by a pole in game. When the pole is hit it is destroyed. How can I tell the object appearing to be held up to turn kinematic off and fall through a script? I’m not asking for a free script just at a loss as how to make this work right now. Thanks for any help.

Unity has an OnDestroy and an OnDisable call backs. Simply add one of these functions to your pole. The pole can then tell the held object to fall.

You could also achieve this effect with Hinges.