title: How to delete an instantiated object Python?
body: <p>I am relatively new to object oriented programming and I cannot figure out how to delete an instantiated object in Python.</p>
  <pre class="lang-py prettyprint-override"><code>if self.hit_paddle(pos) == True or self.hit_paddle2(pos) == True:
      bar = bar + 1
  if bar == 1:
      global barbox1
      barbox1 = barfill(canvas)
      barbox1.canvas.move(barbox1.id, 253, 367)
  if bar == 2:
      global barbox2
      barbox2 = barfill(canvas)
      barbox2.canvas.move(barbox5.id, 413, 367)
      bar = 0
      time.sleep(0.2)
      barbox1 = None
      barbox2 = None
  </code></pre>
  <p>That is the code, the main thing I was trying in order to delete the objects was <code>barbox1 = None</code>, but that doesn't seem to work.</p>