Is there a built-in way to clean up old servers?

We have a CI/CD pipeline that involves spinning up a number of EC2 instances which are then auto-registered with Octopus. This works, but when an environment is torn down, it leaves a number of dead servers/targets. Is there some built-in way to clean up dead targets? If not, is there any example of using the API to do so?

Thanks,
Erick

Hi Erick,

Thanks for getting in touch! We have plans to make more elastic friendly machines and environments: https://octopus.com/blog/rfc-cloud-and-infrastructure-automation-support
This is due in 3.4 (we just released a beta for 3.3) so it is next on the cards.

However you can script it now using similar steps/scripts as described in the following post: http://help.octopusdeploy.com/discussions/questions/4932-removing-tentacles

Hope that helps!
Vanessa