Besides adding and modifying items on a canvas, it is also possible to delete them via the delete() method of the Canvas class. Although the usage of this method is very straightforward, there are a couple of useful patterns that we will see in the next example.
Keep in mind that the more items displayed on a canvas, the longer it will take to Tkinter to redraw the widget. Therefore, it is convenient to remove unnecessary items if this could cause a performance issue.