def detach_devices_from_vm(session, vm_ref, devices):
 client_factory = session.vim.client.factory
 config_spec = _detach_and_delete_devices_config_spec(client_factory, devices)
 reconfigure_vm(session, vm_ref, config_spec)

def detach_devices_from_vm ( session , vm_ref , devices ) : client_factory = session . vim . client . factory config_spec = _detach_and_delete_devices_config_spec ( client_factory , devices ) reconfigure_vm ( session , vm_ref , config_spec )
detach specified devices from vm .