<p>Is there any default options in kubernetes, to trigger some actions when the resource gets deleted from the cluster?</p>

Karthiknathan.C
<p>The default Kubernetes way of doing this is to use an operator.</p>
<p>In a nutshell, you have a software running that is watching resources (<code>Namespaces</code> in your case) and react when some namespace changes (deleted in your case).</p>
<p>You might want to add <code>finalizers</code> to Namespaces for proper cleanup.</p>
<p>Please refer to <a href="https://kubernetes.io/docs/concepts/extend-kubernetes/operator/" rel="nofollow noreferrer">the documentation</a> for more details.</p>
