title: How to clear canvas html5?
body: <p>I'm trying to clear a Canvas.</p>
  
  <p>I execute a setInterval function, who calls different "canvas" in any iteration.</p>
  
  <p>After any execution, i call this function:</p>
  
  <pre><code>function deleteCanvas(){
      var canvas = document.getElementById("canvas");
      var context = canvas.getContext("2d");
      context.clearRect(0, 0, context.width,context.height);
      context.beginPath();
  }
  </code></pre>
  
  <p>But no delete the canvas image.</p>
  
  <p>Any idea?</p>
  
  <p>Best regards,</p>