Allow for app to be automatically deleted when the corresponding git branch no longer exists

We are using Github Actions to automatically create app on very new PR and this is really convenient.
The only drawback is that once the branch has been merged, we need to manually remove that app from the environment.
Would it be feasible to automatically delete an app from an environment when the corresponding branch no longer exists ?
We don’t want to use preview environment as this would clone all other resources used in our environment, leading to unecessary costs and replication issues with databases for example.

1 Like

Hi @emmanuelcohenlaroque ,

Did you turn on auto-delete from your preview environment settings? (cf screenshot)

It’s precisely the purpose of this feature. Once your branch that created the Preview Environment is merged, then the Preview Environment is deleted automatically.