'If we deployed an instance, tear it down.'

def cleanup_instance(self):

    if self.options.instance:
        print 'Leaving    pre-existing    instance    {name}'.format(self.options.instance)
        return
    print 'Deleting    snapshot    {name}-snapshot'.format(name=self.__instance)
    check_run_quick('gcloud    {account}    compute    snapshots    delete    -q    {name}-snapshot    --project={project}'.format(account=self.__gcloud_account_arg, name=self.__instance, project=self.__project), echo=False)
    print 'Deleting    instance    {name}'.format(name=self.__instance)
    run_quick('gcloud    {account}    compute    instances    delete    -q    {name}        --zone={zone}    --project={project}'.format(account=self.__gcloud_account_arg, name=self.__instance, zone=self.__zone, project=self.__project), echo=False)
