def clear(self):
        self.namespace.remove()

    # dict interface
Change `on_delete` from CASCADE (Django's default value) to PROTECT
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/beaker/cache.py/Cache.clear--crossover with--dataset/ETHPy150Open lsaffre/lino/lino/core/kernel.py/Kernel.protect_foreignkeys