How to delete all children elements?

You can use winfo_children to get a list of all children of a particular widget, which you can then iterate over:

for child in infoFrame.winfo_children():
    child.destroy()

Leave a Comment