var deleteElement = document.getElementById("idDelete");
deleteElement.remove();
var deleteElement = document.querySelector("#idDelete");
deleteElement.remove();
var deleteElements = document.querySelectorAll(".example");
for (var i = 0; i < deleteElements.length; i++) {
deleteElements[i].remove();
}