Remove App Setting in an Environment

Hi there.,

I’m wondering if a variable can be removed between environments, so that is exists in one, but not the other?

For example



Hi Darryl,

Thanks for reaching out. The way to do this would be using a config transform file that runs only for the Prod environment. The below line should help you remove that key during the transformation:

Doc on how to use config transformation with Octopus:

Hope that helps,