Only delete a machine once(when both aws and ec2 is enabled)

* Only delete a machine once(when both aws and ec2 is enabled).
* No need to create unused vars.