delete the window in tkinter code example Example: How to delete Tkinter widgets from a window? widget.destroy()