window.destroy()
This method deletes the window given by window, plus all of its descendants. If a root window ".tkinter.Tk()" is deleted then all windows will be destroyed and the application will (normally) exit. An error is returned if window does not exist.