def purge_module(self, module_name):
containers = self.config["<STR_LIT>"]["<STR_LIT>"]<EOL>containers_to_update = set()<EOL>if module_name in containers:<EOL><INDENT>containers_to_update.update(set(containers[module_name]))<EOL><DEDENT>for container in containers_to_update:<EOL><INDENT>try:<EOL><INDENT>self.modules[container].module_class.items.remove(module_name)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
A module has been removed e.g. a module that had an error.
We need to find any containers and remove the module from them.