'Deletes a logical volume.'

@utils.synchronized('quobyte', external=False)
def delete_volume(self, volume):

    if (not volume.provider_location):
        LOG.warning('Volume    %s    does    not    have    provider_location    specified,    skipping', volume.name)
        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))
    self._execute('rm', '-f', mounted_path, run_as_root=self._execute_as_root)
    base_volume_path = self._local_path_volume(volume)
    fileutils.delete_if_exists(base_volume_path)
    info_path = self._local_path_volume_info(volume)
    fileutils.delete_if_exists(info_path)
