'Delete the registry linked to a given database.'

@classmethod
def delete(cls, db_name):

    with cls._lock:
        if (db_name in cls.registries):
            cls.registries[db_name].clear_caches()
            del cls.registries[db_name]
