'Driver entry point to detach a volume from an instance.'

@fczm_utils.remove_fc_zone
def terminate_connection(self, volume, connector, **kwargs):

    init_ports = self._build_initport_list(connector)
    itls = self.common.terminate_connection(volume, 'FC', init_ports, connector['host'])
    volumes_count = self.common.get_exports_count_by_initiators(init_ports)
    if (volumes_count > 0):
        data = {'driver_volume_type': 'fibre_channel', 'data': {}}
    else:
        (target_wwns, initiator_target_map) = self._build_initiator_target_map(itls, connector)
        data = {'driver_volume_type': 'fibre_channel', 'data': {'target_wwn': target_wwns, 'initiator_target_map': initiator_target_map}}
    LOG.debug('Return    FC    data:    %s', data)
    return data
