Auto Web.Config Transform Feature Doesn't Clean-up the "Web.xxxx.Config" Transforms

I am packaging a web application via TeamCity and uploading the Nuget to Octopus. The package contains the desired transforms as expected. I have checked the option in my Process step to automatically transform configs. On Deploy, Octopus does perform the transforms down to Web.Config, but it does not automatically clean up the tranform files (Web.Debug.Config, Web.Release.Config). They are left as artifacts in the deployment folder.

Is it possible to get Octopus to clean these transforms up after it performs the operation, or do I need to script-up a delete?

Hi Britton,

Thanks for getting in touch! Octopus does not clean these files up. But we have a script in the library just for this purpose:
https://library.octopusdeploy.com/#!/step-template/actiontemplate-file-system-clean-directory

Hope that helps!
Vanessa

Thanks so much. That worked great!