python canvas remove object code example
Example 1: how clear everything on canvas in tkinter
# Clear Everything in Tkinter Canvas
canvas.delete("all")
Example 2: tkinter canvas remove
from Tkinter import *
a = Tk()
canvas = Canvas(a, width = 500, height = 500)
canvas.pack()
myrect = canvas.create_rectangle(0,0,100,100)
canvas.delete(myrect) #Deletes the rectangle