Would you like to clean house with js without messing around with hidden stuff? Piece of cake:
document.getElementById("thing_to_delete").parentNode.removeChild(document.getElementById("thing_to_delete"));
Yes, it's kinda weird, just like referring to myself as "the son of my father", but it actualy works.