Supprimer JavaScript

var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);
Confused Chinchilla