'Deletes a snapshot.'

def delete_snapshot(self, snapshot):

    LOG.debug('Delete    snapshot:    %s', snapshot['name'])
    volume_name = (self.configuration.zadara_vol_name_template % snapshot['volume_name'])
    cg_name = self._get_volume_cg_name(volume_name)
    if (not cg_name):
        LOG.warning('snapshot:    original    volume    %s    not    found,    skipping    delete    operation', volume_name)
        return
    snap_id = self._get_snap_id(cg_name, snapshot['name'])
    if (not snap_id):
        LOG.warning('snapshot:    snapshot    %s    not    found,    skipping    delete    operation', snapshot['name'])
        return
    self.vpsa.send_cmd('delete_snapshot', snap_id=snap_id)
