javascript destroy html element code example
Example 1: remove javascript
var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);
Example 2: js remove entry
delete obj.entry;
var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);
delete obj.entry;