def clear(self):
        try:
            for dim in self.qnameDims.values():
                # only clear if its a prototype, but not a 'reused' model object from other instance
                if isinstance(dim, DimValuePrototype):
                    dim.clear()
        except __HOLE__:
            pass
        self.__dict__.clear()  # delete local attributes
dataset/ETHPy150Open Arelle/Arelle/arelle/PrototypeInstanceObject.py/ContextPrototype.clear