Delete IIS Site on project deletion

I’m looking at way to automatically delete IIS sites created by a project when that project is deleted on octopus deploy. How have people handled this?

Was there an update on this feature. I’ve noticed on our servers that past projects can be cleaned up from Octopus Deploy, but the IIS sites still have Sites, AppPools, and Webroots still configured.

Cheers

Hi,

Thanks for reaching out. Octopus will not attempt to delete anything in your Tentacles once you delete the project. That is something you’re gonna have to do yourself. You can use these library steps to delete the Site and App Pool:

https://library.octopusdeploy.com/#!/step-template/actiontemplate-iis-website-delete
https://library.octopusdeploy.com/#!/step-template/actiontemplate-iis-apppool-delete

Hope that helps!

Dalmiro