I tried to search a lot but have not got proper answer.
In my case, I want to run a pipeline when a branch is deleted, basically it will help to remove the resources used for example k8s pods/deployments.
We create development environments whenever a branch is created so now to want to remove these environments once that branch is deleted.
Please do suggest a valid way to do so. Is there any add-on available?