def destroy(name, call=None):
 log.info('Attempting to delete instance %s', name)
 if (not vb_machine_exists(name)):
  return "{0} doesn't exist and can't be deleted".format(name)
 cloud.fire_event('event', 'destroying instance', 'salt/cloud/{0}/destroying'.format(name), args={'name': name}, sock_dir=__opts__['sock_dir'], transport=__opts__['transport'])
 vb_destroy_machine(name)
 cloud.fire_event('event', 'destroyed instance', 'salt/cloud/{0}/destroyed'.format(name), args={'name': name}, sock_dir=__opts__['sock_dir'], transport=__opts__['transport'])

def destroy ( name , call = None ) : log . info ( 'Attempting to delete instance %s' , name ) if ( not vb_machine_exists ( name ) ) : return "{0} doesn't exist and can't be deleted" . format ( name ) cloud . fire_event ( 'event' , 'destroying instance' , 'salt/cloud/{0}/destroying' . format ( name ) , args = { 'name' : name } , sock_dir = __opts__ [ 'sock_dir' ] , transport = __opts__ [ 'transport' ] ) vb_destroy_machine ( name ) cloud . fire_event ( 'event' , 'destroyed instance' , 'salt/cloud/{0}/destroyed' . format ( name ) , args = { 'name' : name } , sock_dir = __opts__ [ 'sock_dir' ] , transport = __opts__ [ 'transport' ] )
destroy a machine by name .