title: Javascript/jQuery: remove shape/path from canvas
body: <p>I can't seem to find the function to remove a shape or path from the canvas after it has been created.</p>
  
  <p>So I'm creating a bezier curve between 2 points with</p>
  
  <pre><code>beginPath();
  bezierCurveTo();
  stroke();
  closePath();
  </code></pre>
  
  <p>How can I remove this from the canvas once it's been created? I need to be able to call the remove function via <code>toggle()</code> and <code>blur()</code>. I'm sure something exists for this...</p>
  
  <p>Thanks in advance for any help!</p>