'Deletes a snapshot.'

def delete_snapshot(self, snapshot):

    (d_res_name, sname, _) = self._resource_and_snap_data_from_snapshot(snapshot, empty_ok=True)
    if (not d_res_name):
        LOG.warning('snapshot:    %s    not    found,    skipping    delete    operation', snapshot['id'])
        LOG.info('Successfully    deleted    snapshot:    %s', snapshot['id'])
        return True
    res = self.call_or_reconnect(self.odm.remove_snapshot, d_res_name, sname, True)
    return self._check_result(res, ignore=[dm_exc.DM_ENOENT])
