title: How to fully delete a turtle
body: <p>I made a small <code>tkinter</code> game that uses <code>turtle</code> for graphics. It's a simulation of the Triangle Peg Game from Cracker Barrel that is able to tell the player the next best move to make at any point in the game, among other features. Pegs are just instances of a subclass of <code>turtle.RawPen</code>, and I keep plenty of plain instances of <code>RawPen</code> around to draw arrows representing moves.</p>
  
  <p>I noticed that when I restart the game (which calls <code>turtle.bye()</code>) to kill the turtle window, that memory consumption actually increases, as turtles don't seem to be deleted. Even if I call <code>window.clear()</code> beforehand, which clears <code>_turtles</code> in <code>window.__dict__</code>, there are still references to the turtles. I ensured that all the references that I make to them are deleted during restart, so that's not the issue. Is there any way to truly delete a turtle so it can be garbage collected?</p>