Use the tool [icon]/images/ggb/toolbar/mode_point.png[/icon] to draw some points. Then click on [b]Remove Points[/b] button.
for (var ind = ggbApplet.getObjectNumber() - 1; ind >= 0; ind = ind - 1) {[br] var name = ggbApplet.getObjectName(ind)[br] var type = ggbApplet.getObjectType(name)[br] /*alert(""+ind+" "+name+" "+type)*/[br] if (type == "point") {[br] ggbApplet.deleteObject(name)[br] }[br]}
If you want to delete other kind of objects just change the value of [b]type[/b] in the[i] if[/i] statement, e. g. "line", "circle", "stroke", etc.