I need to delete multiple canvas elements created. With the function below I can delete one every time I click a button but I need to delete all canvas created at once. How can I do this?
function deleteCanvas() {
var list = document.getElementById("output");
list.removeChild(list.childNodes[0]);
}