Remove module child

Is it possible to remove a child module safely? I’m totally sure that I removed it from any computations I do. The goal is, since it is no longer required, to make python free it from memory as there will be no more references to it.
The modules I want to remove were added with add_module so ideally it would be some method module.remove_module(child_module_name)

Hi,

del module.child_module_name will do the right thing for you :slight_smile: