'Remove one or all keys (i.e. logic variables) from an
assignment, and update ``self.variant``.
:param var: a Variable acting as a key for the assignment.'

def purge(self, var=None):

    if var:
        del self[var]
    else:
        self.clear()
    self._addvariant()
    return None
