I can't find any clear and unambiguous answer in the documentation or on this board. If I use DiscardPanel(), will all the controls also be discarded? If one of those controls is a graph, will all the plots and points also be discarded automatically?
I just want to be sure I won't leak memory if I write this code in the simple way.
Yes, discarding a panel also discards all controls on that panel, and by implication, all data used by those controls. So in short, that is fine and the intended usage.