'Deletes a snapshot.'

def delete_snapshot(self, snapshot_name):

    snap = self.vnx.get_snap(name=snapshot_name)
    try:
        snap.delete()
    except storops_ex.VNXSnapNotExistsError as ex:
        LOG.warning('Snapshot    %(name)s    may    be    deleted    already.    Message:    %(msg)s', {'name': snapshot_name, 'msg': ex.message})
    except storops_ex.VNXDeleteAttachedSnapError as ex:
        with excutils.save_and_reraise_exception():
            LOG.warning('Failed    to    delete    snapshot    %(name)s    which    is    in    use.    Message:    %(msg)s', {'name': snapshot_name, 'msg': ex.message})
