title: Capability to delete all items with certain object tag tkinter
body: <p>I have a few different object tags within a tkinter canvas. I would like the user to be able to delete the current object under the mouse cursor with the tag <code>&quot;token&quot;</code>.</p>
  <p>I do not want all objects with the tag <code>&quot;token&quot;</code> to be deleted, only the one under the mouse cursor. I would like any object with the tag <code>&quot;token&quot;</code> to be able to be deleted. I want to prohibit deletion of objects with tags <code>&quot;line&quot;</code>. I've tried:</p>
  <pre><code>self.canvas.delete(&quot;current&quot;)
  </code></pre>
  <p>But this allows me to delete anything under my mouse cursor (including the line object). When I tried</p>
  <pre><code>self.canvas.delete(&quot;token&quot;)
  </code></pre>
  <p>This allowed me to delete all items with the tag <code>&quot;token&quot;</code> all at once. Here is an excerpt of the definitions for my line object, <code>&quot;token&quot;</code> objects, and my delete function:</p>
  <pre><code> # create static line
      self.canvas.create_line(50,250,200,250, width=7, fill=&quot;grey&quot;, tags=&quot;line&quot;)
  
   #Create oval
   myoval = self.canvas.create_oval(x0,y0,x1,y1, width=10, outline=&quot;black&quot;, fill=&quot;black&quot;,
                                    tags=&quot;token&quot;)
  
  
   def on_button_press_deleteoval(self,event):
      '''Delete oval with double button 1 click.'''
      self.canvas.delete(&quot;current&quot;)
  </code></pre>