Cocos Creator
clear 
The clear() function is used to erase any previously drawn content.
Example 
javascript
update: function (dt) {
    var ctx = node.getComponent(cc.Graphics);
    ctx.clear();
    ctx.circle(200, 200, 200);
    ctx.stroke();
}Return to the Graphics Component Reference documentation.