'Detach a volume from a host.'

@proxy._trace_time
@proxy.logger
def terminate_connection(self, volume, connector, force=False, **kwargs):

    lun = Lun(volume)
    LOG.info('Detach    the    volume    %s.', lun.ds_id)
    if (lun.group and lun.failed_over):
        backend_helper = self._replication.get_target_helper()
    else:
        backend_helper = self._helper
    return backend_helper.terminate_connection(lun.ds_id, connector, force, **kwargs)
