'Delete snapshot of shelved instance.'

def _delete_snapshot_of_shelved_instance(self, context, instance, snapshot_id):

    try:
        self.image_api.delete(context, snapshot_id)
    except (exception.ImageNotFound, exception.ImageNotAuthorized) as exc:
        LOG.warning('Failed    to    delete    snapshot    from    shelved    instance    (%s).', exc.format_message(), instance=instance)
    except Exception:
        LOG.exception('Something    wrong    happened    when    trying    to    delete    snapshot    from    shelved    instance.', instance=instance)
