'Destroy all resources created to export zfs volume.
:param volume: reference of volume to be unexported'

def remove_export(self, _ctx, volume):

    volume_path = self._get_volume_path(volume)
    url = ('san/lunMappings?volume=%s&fields=id' % volume_path.replace('/', '%2F'))
    data = self.nef.get(url)['data']
    if data:
        url = ('san/lunMappings/%s' % data[0]['id'])
        self.nef.delete(url)
    else:
        LOG.debug('LU    already    deleted    from    appliance')
    for tg in self.volumes:
        if (volume_path in self.volumes[tg]):
            self.volumes[tg].remove(volume_path)
            break
