'Deletes a logical volume.'

@remotefs_drv.locked_volume_id_operation
def delete_volume(self, volume):

    if (not volume.provider_location):
        msg = (_('Volume    %s    does    not    have    provider_location    specified,    skipping.') % volume.name)
        LOG.error(msg)
        return
    self._ensure_share_mounted(volume.provider_location)
    volume_dir = self._local_volume_dir(volume)
    mounted_path = os.path.join(volume_dir, self.get_active_image_from_info(volume))
    if os.path.exists(mounted_path):
        self._delete(mounted_path)
        self._delete((mounted_path + '.qemu_img_info'))
    else:
        LOG.info('Skipping    deletion    of    volume    %s    as    it    does    not    exist.', mounted_path)
    info_path = self._local_path_volume_info(volume)
    self._delete(info_path)
