

def delete_model(self, model_id):
    records = self.delete_records(model_id)
    doc = self._db['models'][model_id]
    del self._db['models'][model_id]
    return {
        'definition': doc['definition'],
        'permissions': self['permissions'],
        'records': records,
    }

dataset/ETHPy150Open spiral-project/daybed/daybed/backends/memory/__init__.py MemoryBackend.delete_model/VarMisuse@57/80 `doc`->`self`