Check out example codes for "how to destroy all widgets in a frame". It will help you in understanding the concepts better.

Code Example 1

for widget in frame.winfo_children():
    widget.destroy()

Learn ReactJs, React Native from akashmittal.com