Best practice to cleanup pods and deployment of environment on stop?

I’ve been able to setup and configure → deploy to gke with the latest auto devops system via Gitlab-ci and get everything to work great. Only issue I have is that I’m not sure what the best method is for clean up for if I have an environment I want to stop. I have all the jobs running, pods created but no method to clean them up when I stop my environment.

I did see somewhere that there is possibly an option to do it automagically when you delete a branch but this is running on master so that doesn’t apply.

Any help is appreciated or links to documentation / stop configurations that cleanup the pods.