'Snapshot delete.'

def snapshot_delete(self, bvname, svname):

    query_status = self.query_BV_SV_status(bvname[3:], svname)
    if (query_status == 'snap/active'):
        cmd = ('iSMsc_delete    -bv    %(bv)s    -bvflg    ld    -sv    %(sv)s    -svflg    ld' % {'bv': bvname[3:], 'sv': svname})
        self._execute(cmd)
        while True:
            query_status = self.query_BV_SV_status(bvname[3:], svname)
            if (query_status == 'snap/deleting'):
                LOG.debug('Sleep    1    seconds    Start')
                time.sleep(1)
            else:
                break
    else:
        LOG.debug('The    snapshot    data    does    not    exist,    because    already    forced    deletion.    bvname=%(bvname)s,    svname=%(svname)s', {'bvname': bvname, 'svname': svname})
    cmd = ('iSMcfg    generationdel    -bvname    %s    -count    1' % bvname)
    self._execute(cmd)
